Package zombie.iso
Class Vector3
java.lang.Object
zombie.iso.Vector3
- All Implemented Interfaces:
Cloneable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
clone()
float
distanceTo
(Vector2 vector2) div
(float float1) static float
dot
(float float1, float float2, float float3, float float4) float
float
boolean
static Vector2
fromAwtPoint
(Point point) static Vector2
fromLengthDirection
(float float1, float float2) float
float
float
void
void
rotate
(float float1) void
rotatey
(float float1) set
(float float1, float float2, float float3) setDirection
(float float1) setLength
(float float1) setLengthAndDirection
(float float1, float float2) static Vector3
toString()
-
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
-
distanceTo
-
dot
-
dot3d
-
equals
-
getDirection
public float getDirection() -
setDirection
-
getLength
public float getLength() -
getLengthSq
public float getLengthSq() -
setLength
-
normalize
public void normalize() -
set
-
set
-
setLengthAndDirection
-
toAwtDimension
-
toAwtPoint
-
toString
-
sub
-
sub
-