Package adaptlil.data_classes
Class LeftEyePointOfGaze
java.lang.Object
adaptlil.data_classes.LeftEyePointOfGaze
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLeftEyePointOfGaze
(double x, double y, boolean isValid) LeftEyePointOfGaze is where the left eye is currently looking on the screen. -
Method Summary
Modifier and TypeMethodDescriptiondouble
getX()
The X-coordinate of the left eye POG, as a fraction of the screen size.double
getY()
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 LeftEyePointOfGazeboolean
isValid()
Valid flagvoid
setValid
(boolean valid) The valid flag if the data is validvoid
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.
-
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:
-