Class RightEyePointOfGaze

java.lang.Object
adaptlil.data_classes.RightEyePointOfGaze

public class RightEyePointOfGaze extends Object
  • Field Summary

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

    Constructors
    Constructor
    Description
     
    RightEyePointOfGaze(double x, double y, boolean isValid)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    The X-coordinate of the right eye POG, as a fraction of the screen size.
    double
    The Y-coordinate of the right eye POG, as a fraction of the screen size.
    interpolate(RightEyePointOfGaze firstRightEyePointOfGaze, RightEyePointOfGaze nextRightEyePointOfGaze, int nSteps)
    Performs Linear interpolation nSteps RightEyePointOfGaze elements between the first RightEyePointOfGaze and the next RightEyePointOfGaze
    boolean
    Valid flag
    void
    setValid(boolean valid)
    The valid flag if the data is valid
    void
    setX(double x)
    The X-coordinate of the right eye POG, as a fraction of the screen size.
    void
    setY(double y)
    The Y-coordinate of the right 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

    • RightEyePointOfGaze

      public RightEyePointOfGaze()
    • RightEyePointOfGaze

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

    • interpolate

      public RightEyePointOfGaze[] interpolate(RightEyePointOfGaze firstRightEyePointOfGaze, RightEyePointOfGaze nextRightEyePointOfGaze, int nSteps)
      Performs Linear interpolation nSteps RightEyePointOfGaze elements between the first RightEyePointOfGaze and the next RightEyePointOfGaze
      Parameters:
      firstRightEyePointOfGaze -
      nextRightEyePointOfGaze -
      nSteps -
      Returns:
    • setX

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

      public void setY(double y)
      The Y-coordinate of the right eye POG, as a fraction of the screen size.
      Parameters:
      y - Y-coordinate of the right 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 right eye POG, as a fraction of the screen size.
      Returns:
      double
    • getY

      public double getY()
      The Y-coordinate of the right 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.