Class Vector3
java.lang.Object
zombie.iso.Vector3
- All Implemented Interfaces:
Cloneable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatclone()floatdistanceTo(float x, float y, float z) floatdistanceTo(Vector2 other) floatdistanceTo(Vector3 other) div(float scalar) static floatdot(float x, float y, float tx, float ty) floatfloatbooleanstatic Vector2fromLengthDirection(float length, float direction) floatfloatfloatvoidvoidrotate(float rad) voidrotatey(float rad) set(float x, float y, float z) setDirection(float direction) setLength(float length) setLengthAndDirection(float direction, float length) static Vector3toString()
-
Field Details
-
x
public float x -
y
public float y -
z
public float z
-
-
Constructor Details
-
Vector3
public Vector3() -
Vector3
-
Vector3
public Vector3(float x, float y, float z)
-
-
Method Details
-
fromLengthDirection
-
dot
public static float dot(float x, float y, float tx, float ty) -
rotate
public void rotate(float rad) -
rotatey
public void rotatey(float rad) -
add
-
addToThis
-
addToThis
-
div
-
aimAt
-
angleTo
-
clone
-
distanceTo
-
distanceTo
-
distanceTo
public float distanceTo(float x, float y, float z) -
dot
-
dot3d
-
equals
-
getDirection
public float getDirection() -
setDirection
-
getLength
public float getLength() -
getLengthSq
public float getLengthSq() -
setLength
-
normalize
public void normalize() -
set
-
set
-
setLengthAndDirection
-
toString
-
sub
-
sub
-