Class MouseVector

  • All Implemented Interfaces:
    Vector

    public class MouseVector
    extends java.lang.Object
    implements Vector
    Created with IntelliJ IDEA.
    Since:
    : 8/23/2015 Time : 9:23 PM
    • Constructor Detail

      • MouseVector

        public MouseVector​(double magnitude,
                           double direction,
                           int modifier)
    • Method Detail

      • getMagnitude

        public double getMagnitude()
        Description copied from interface: Vector
        Gets magnitude.
        Specified by:
        getMagnitude in interface Vector
        Returns:
        the magnitude
      • setMagnitude

        public void setMagnitude​(double magnitude)
      • getDirection

        public double getDirection()
        Description copied from interface: Vector
        Gets direction.
        Specified by:
        getDirection in interface Vector
        Returns:
        the direction
      • setDirection

        public void setDirection​(double direction)
      • getAngleRadian

        public double getAngleRadian()
        Description copied from interface: Vector
        Gets angle radian.
        Specified by:
        getAngleRadian in interface Vector
        Returns:
        the angle radian
      • setAngleRadian

        public void setAngleRadian​(double angle)
      • getThetaX

        public double getThetaX()
        Description copied from interface: Vector
        Gets theta x.
        Specified by:
        getThetaX in interface Vector
        Returns:
        the theta x
      • getThetaY

        public double getThetaY()
        Description copied from interface: Vector
        Gets theta y.
        Specified by:
        getThetaY in interface Vector
        Returns:
        the theta y