Package adaptlil.data_classes
Class RightEyePointOfGaze
java.lang.Object
adaptlil.data_classes.RightEyePointOfGaze
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getX()
The X-coordinate of the right eye POG, as a fraction of the screen size.double
getY()
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 RightEyePointOfGazeboolean
isValid()
Valid flagvoid
setValid
(boolean valid) The valid flag if the data is validvoid
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.
-
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.
-