Package zombie.iso

Class Vector3

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

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

    • x

      public float x
    • y

      public float y
    • z

      public float z
  • Constructor Details

    • Vector3

      public Vector3()
    • Vector3

      public Vector3​(Vector3 vector3)
    • Vector3

      public Vector3​(float float1, float float2, float float3)
  • 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 Vector3 addToThis​(Vector2 vector2)
    • aimAt

      public Vector3 aimAt​(Vector2 vector2)
    • angleTo

      public float angleTo​(Vector2 vector2)
    • clone

      public Vector3 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 Vector3 set​(Vector3 vector3)
    • set

      public Vector3 set​(float float1, float float2, float float3)
    • setDirection

      public Vector3 setDirection​(float float1)
    • setLength

      public Vector3 setLength​(float float1)
    • setLengthAndDirection

      public Vector3 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