Class Saccade

java.lang.Object
adaptlil.data_classes.Saccade

public class Saccade extends Object
  • Field Details

    • pointA

      private Point2D.Double pointA
    • pointB

      private Point2D.Double pointB
    • duration

      private double duration
    • length

      private double length
  • Constructor Details

    • Saccade

      public Saccade(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 duration
      Parameters:
      pointA -
      pointB -
      duration -
    • Saccade

      public Saccade(Point2D.Double pointA, Point2D.Double pointB, double duration, double length)
  • Method Details

    • calculateRelativeAngle

      public double calculateRelativeAngle(Saccade c)
      Given a saccade c, the relative angle from this saccade to the saccade c is calculated
      Parameters:
      c -
      Returns:
    • calculateRelativeAngle

      public double calculateRelativeAngle(Point2D.Double c)
      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

      public Point2D.Double getPointA()
    • getPointB

      public Point2D.Double getPointB()