Package zombie.iso
Class Vector3
java.lang.Object
zombie.iso.Vector3
- All Implemented Interfaces:
java.lang.Cloneable
public final class Vector3
extends java.lang.Object
implements java.lang.Cloneable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Vector2
add(Vector2 vector2)
Vector3
addToThis(Vector2 vector2)
Vector3
addToThis(Vector3 vector3)
Vector3
aimAt(Vector2 vector2)
float
angleTo(Vector2 vector2)
Vector3
clone()
float
distanceTo(Vector2 vector2)
Vector3
div(float float1)
static float
dot(float float1, float float2, float float3, float float4)
float
dot(Vector2 vector2)
float
dot3d(Vector3 vector3)
boolean
equals(java.lang.Object object)
static Vector2
fromAwtPoint(java.awt.Point point)
static Vector2
fromLengthDirection(float float1, float float2)
float
getDirection()
float
getLength()
float
getLengthSq()
void
normalize()
void
rotate(float float1)
void
rotatey(float float1)
Vector3
set(float float1, float float2, float float3)
Vector3
set(Vector3 vector3)
Vector3
setDirection(float float1)
Vector3
setLength(float float1)
Vector3
setLengthAndDirection(float float1, float float2)
Vector3
sub(Vector3 vector3, Vector3 vector32)
static Vector3
sub(Vector3 vector3, Vector3 vector32, Vector3 vector33)
java.awt.Dimension
toAwtDimension()
java.awt.Point
toAwtPoint()
java.lang.String
toString()
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
x
public float x -
y
public float y -
z
public float z
-
-
Constructor Details
-
Vector3
public Vector3() -
Vector3
-
Vector3
public Vector3(float float1, float float2, float float3)
-
-
Method Details
-
fromAwtPoint
-
fromLengthDirection
-
dot
public static float dot(float float1, float float2, float float3, float float4) -
rotate
public void rotate(float float1) -
rotatey
public void rotatey(float float1) -
add
-
addToThis
-
addToThis
-
div
-
aimAt
-
angleTo
-
clone
- Overrides:
clone
in classjava.lang.Object
-
distanceTo
-
dot
-
dot3d
-
equals
public boolean equals(java.lang.Object object)- Overrides:
equals
in classjava.lang.Object
-
getDirection
public float getDirection() -
setDirection
-
getLength
public float getLength() -
getLengthSq
public float getLengthSq() -
setLength
-
normalize
public void normalize() -
set
-
set
-
setLengthAndDirection
-
toAwtDimension
public java.awt.Dimension toAwtDimension() -
toAwtPoint
public java.awt.Point toAwtPoint() -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
sub
-
sub
-