Package javax.vecmath

Class Vector2f

java.lang.Object
javax.vecmath.Tuple2f
javax.vecmath.Vector2f
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

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

    • Vector2f

      public Vector2f​(float float1, float float2)
    • Vector2f

      public Vector2f​(float[] floatArray)
    • Vector2f

      public Vector2f​(Vector2f vector2f)
    • Vector2f

      public Vector2f​(Vector2d vector2d)
    • Vector2f

      public Vector2f​(Tuple2f tuple2f)
    • Vector2f

      public Vector2f​(Tuple2d tuple2d)
    • Vector2f

      public Vector2f()
  • Method Details

    • dot

      public final float dot​(Vector2f vector2f)
    • length

      public final float length()
    • lengthSquared

      public final float lengthSquared()
    • normalize

      public final void normalize​(Vector2f vector2f)
    • normalize

      public final void normalize()
    • angle

      public final float angle​(Vector2f vector2f)