Class Vector2D


  • @Deprecated
    public class Vector2D
    extends Object
    Deprecated.
    2D vector

    NOTE: This API is still in flux and might change in incompatible ways in the next release.

    • Constructor Detail

      • Vector2D

        public Vector2D​(double x,
                        double y)
        Deprecated.
        Create a vector from the origin of the coordinate system to the given point
        Parameters:
        x -
        y -
      • Vector2D

        public Vector2D​(Point2D p)
        Deprecated.
        Create a vector from the origin of the coordinate system to the given point
      • Vector2D

        public Vector2D​(Point2D from,
                        Point2D to)
        Deprecated.
        Create a vector from one point to another
        Parameters:
        from -
        to -
      • Vector2D

        public Vector2D()
        Deprecated.
      • Vector2D

        public Vector2D​(Vector2D other)
        Deprecated.
    • Method Detail

      • getX

        public double getX()
        Deprecated.
      • getY

        public double getY()
        Deprecated.
      • setX

        public void setX​(double x)
        Deprecated.
      • setY

        public void setY​(double y)
        Deprecated.
      • set

        public void set​(double x,
                        double y)
        Deprecated.
      • equals

        public boolean equals​(Vector2D other)
        Deprecated.
      • dot

        public double dot​(Vector2D in)
        Deprecated.
      • normSqr

        public double normSqr()
        Deprecated.
        Vector length (magnitude) squared
      • norm

        public double norm()
        Deprecated.
      • mult

        public Vector2D mult​(double d)
        Deprecated.
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object obj)
        Deprecated.
        Overrides:
        equals in class Object