Package javax.vecmath

Class Vector2d

java.lang.Object
javax.vecmath.Tuple2d
javax.vecmath.Vector2d
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Vector2d
extends Tuple2d
implements java.io.Serializable
See Also:
Serialized Form
  • Constructor Details

    • Vector2d

      public Vector2d​(double double1, double double2)
    • Vector2d

      public Vector2d​(double[] doubleArray)
    • Vector2d

      public Vector2d​(Vector2d vector2d)
    • Vector2d

      public Vector2d​(Vector2f vector2f)
    • Vector2d

      public Vector2d​(Tuple2d tuple2d)
    • Vector2d

      public Vector2d​(Tuple2f tuple2f)
    • Vector2d

      public Vector2d()
  • Method Details

    • dot

      public final double dot​(Vector2d vector2d)
    • length

      public final double length()
    • lengthSquared

      public final double lengthSquared()
    • normalize

      public final void normalize​(Vector2d vector2d)
    • normalize

      public final void normalize()
    • angle

      public final double angle​(Vector2d vector2d)