Package zombie.iso

Class Vector2

java.lang.Object
zombie.iso.Vector2
All Implemented Interfaces:
java.lang.Cloneable

public class Vector2
extends java.lang.Object
implements java.lang.Cloneable
  • Field Details

    • x

      public float x
    • y

      public float y
  • Constructor Details

    • Vector2

      public Vector2()
    • Vector2

      public Vector2​(Vector2 vector2)
    • Vector2

      public Vector2​(float float1, float float2)
  • Method Details

    • rotate

      public void rotate​(float float1)
    • fromAwtPoint

      public static Vector2 fromAwtPoint​(java.awt.Point point)
    • fromLengthDirection

      public static Vector2 fromLengthDirection​(float float1, float float2)
    • add

      public Vector2 add​(Vector2 vector2)
    • addToThis

      public Vector2 addToThis​(Vector2 vector2)
    • aimAt

      public Vector2 aimAt​(Vector2 vector2)
    • angleTo

      public float angleTo​(Vector2 vector2)
    • clone

      public Vector2 clone()
      Overrides:
      clone in class java.lang.Object
    • distanceTo

      public float distanceTo​(Vector2 vector2)
    • dot

      public float dot​(Vector2 vector2)
    • dot

      public static float dot​(float float1, float float2, float float3, float float4)
    • equals

      public boolean equals​(java.lang.Object object)
      Overrides:
      equals in class java.lang.Object
    • getDirection

      public float getDirection()
    • getLength

      public float getLength()
    • normalize

      public void normalize()
    • set

      public Vector2 set​(Vector2 vector2)
    • set

      public Vector2 set​(float float1, float float2)
    • setDirection

      public Vector2 setDirection​(float float1)
    • setLength

      public Vector2 setLength​(float float1)
    • setLengthAndDirection

      public Vector2 setLengthAndDirection​(float float1, float float2)
    • toAwtDimension

      public java.awt.Dimension toAwtDimension()
    • toAwtPoint

      public java.awt.Point toAwtPoint()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • getX

      public float getX()
    • setX

      public void setX​(float float1)
    • getY

      public float getY()
    • setY

      public void setY​(float float1)
    • tangent

      public void tangent()