Package adaptlil.data_classes
Class Saccade
java.lang.Object
adaptlil.data_classes.Saccade
-
Field Summary
Modifier and TypeFieldDescriptionprivate double
private double
private Point2D.Double
private Point2D.Double
-
Constructor Summary
ConstructorDescriptionSaccade
(Point2D.Double pointA, Point2D.Double pointB, double duration) Default constructor for a saccade where you have a point a, and a point b with a durationSaccade
(Point2D.Double pointA, Point2D.Double pointB, double duration, double length) -
Method Summary
Modifier and TypeMethodDescriptiondouble
Calculates the absolute angle (assuming x-axis=0)double
Given a saccade c, the relative angle from this saccade to the saccade c is calculateddouble
Given a point c, it calculates the relative angle between the first point, second point of the saccade, to the new point c.double
double
void
setDuration
(double duration) void
setLength
(double length)
-
Field Details
-
pointA
-
pointB
-
duration
private double duration -
length
private double length
-
-
Constructor Details
-
Saccade
Default constructor for a saccade where you have a point a, and a point b with a duration- Parameters:
pointA
-pointB
-duration
-
-
Saccade
-
-
Method Details
-
calculateRelativeAngle
Given a saccade c, the relative angle from this saccade to the saccade c is calculated- Parameters:
c
-- Returns:
-
calculateRelativeAngle
Given a point c, it calculates the relative angle between the first point, second point of the saccade, to the new point c. Point c is likley a point of fixation- Parameters:
c
- Point to calculate relative angle- Returns:
-
calculateAbsoluteAngle
public double calculateAbsoluteAngle()Calculates the absolute angle (assuming x-axis=0)- Returns:
-
setDuration
public void setDuration(double duration) -
setLength
public void setLength(double length) -
getDuration
public double getDuration() -
getLength
public double getLength() -
getPointA
-
getPointB
-