Class LeftEyePointOfGaze

java.lang.Object
adaptlil.data_classes.LeftEyePointOfGaze

public class LeftEyePointOfGaze extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private boolean
     
    private double
     
    private double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    LeftEyePointOfGaze(double x, double y, boolean isValid)
    LeftEyePointOfGaze is where the left eye is currently looking on the screen.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    The X-coordinate of the left eye POG, as a fraction of the screen size.
    double
    The Y-coordinate of the left eye POG, as a fraction of the screen size.
    interpolate(LeftEyePointOfGaze firstLeftEyePointOfGaze, LeftEyePointOfGaze nextLeftEyePointOfGaze, int nSteps)
    Performs Linear interpolation nSteps LeftEyePointOfGaze elements between the first LeftEyePointOfGaze and the next LeftEyePointOfGaze
    boolean
    Valid flag
    void
    setValid(boolean valid)
    The valid flag if the data is valid
    void
    setX(double x)
    The X-coordinate of the left eye POG, as a fraction of the screen size.
    void
    setY(double y)
    The Y-coordinate of the left eye POG, as a fraction of the screen size.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • x

      private double x
    • y

      private double y
    • isValid

      private boolean isValid
  • Constructor Details

    • LeftEyePointOfGaze

      public LeftEyePointOfGaze()
    • LeftEyePointOfGaze

      public LeftEyePointOfGaze(double x, double y, boolean isValid)
      LeftEyePointOfGaze is where the left eye is currently looking on the screen.
      Parameters:
      x - The X-coordinate of the left eye POG, as a fraction of the screen size.
      y - The Y-coordinate of the left eye POG, as a fraction of the screen size.
      isValid - Flag that details if the tracker data is valid or not
  • Method Details

    • setX

      public void setX(double x)
      The X-coordinate of the left eye POG, as a fraction of the screen size.
      Parameters:
      x - X-coordinate of the left eye POG, as a fraction of the screen size.
    • setY

      public void setY(double y)
      The Y-coordinate of the left eye POG, as a fraction of the screen size.
      Parameters:
      y - Y-coordinate of the left eye POG, as a fraction of the screen size.
    • setValid

      public void setValid(boolean valid)
      The valid flag if the data is valid
      Parameters:
      valid -
    • getX

      public double getX()
      The X-coordinate of the left eye POG, as a fraction of the screen size.
      Returns:
      double
    • getY

      public double getY()
      The Y-coordinate of the left eye POG, as a fraction of the screen size.
      Returns:
      double
    • isValid

      public boolean isValid()
      Valid flag
      Returns:
      true if data is valid, false if not.
    • interpolate

      public LeftEyePointOfGaze[] interpolate(LeftEyePointOfGaze firstLeftEyePointOfGaze, LeftEyePointOfGaze nextLeftEyePointOfGaze, int nSteps)
      Performs Linear interpolation nSteps LeftEyePointOfGaze elements between the first LeftEyePointOfGaze and the next LeftEyePointOfGaze
      Parameters:
      firstLeftEyePointOfGaze -
      nextLeftEyePointOfGaze -
      nSteps -
      Returns: