Vector3

Constructors

this
this(float x, float y, float z)
this
this(Vector2 vector)

Members

Functions

cross
Vector3 cross(Vector3 vector)
Undocumented in source. Be warned that the author may not have intended to support it.
distanceTo
float distanceTo(Vector3 vector)

Returns the distance between the vectors

distanceToSquared
float distanceToSquared(Vector3 vector)

Returns the squared distance between the vectors

dot
float dot(Vector3 vector)
Undocumented in source. Be warned that the author may not have intended to support it.
getMagnitude
float getMagnitude()

Returns the magnitude of the vector

getNormalized
Vector3 getNormalized()

Returns a normalized copy of this vector

normalize
void normalize()

Normalizes the vector

opAdd
Vector3 opAdd(Vector3 vector)
Undocumented in source. Be warned that the author may not have intended to support it.
opAdd
Vector3 opAdd(Vector2 vector)
Undocumented in source. Be warned that the author may not have intended to support it.
opAddAssign
Vector3 opAddAssign(Vector3 vector)
Undocumented in source. Be warned that the author may not have intended to support it.
opAddAssign
Vector3 opAddAssign(Vector2 vector)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
void opAssign(Vector2 vector)
Undocumented in source. Be warned that the author may not have intended to support it.
opDiv
Vector3 opDiv(float a)
Undocumented in source. Be warned that the author may not have intended to support it.
opDivAssign
Vector3 opDivAssign(float a)
Undocumented in source. Be warned that the author may not have intended to support it.
opMul
Vector3 opMul(float a)
Undocumented in source. Be warned that the author may not have intended to support it.
opMulAssign
Vector3 opMulAssign(float a)
Undocumented in source. Be warned that the author may not have intended to support it.
opSub
Vector3 opSub(Vector3 vector)
Undocumented in source. Be warned that the author may not have intended to support it.
opSub
Vector3 opSub(Vector2 vector)
Undocumented in source. Be warned that the author may not have intended to support it.
opSubAssign
Vector3 opSubAssign(Vector3 vector)
Undocumented in source. Be warned that the author may not have intended to support it.
opSubAssign
Vector3 opSubAssign(Vector2 vector)
Undocumented in source. Be warned that the author may not have intended to support it.
opUnary
Vector3 opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.
set
void set(float x, float y, float z)

Sets the values of x, y, and z in a single statement

setMagnitude
void setMagnitude(float magnitude)

Sets the magnitude of this vector

Static functions

random
Vector3 random()

Creates a normalized vector with a random direction

Variables

x
float x;
y
float y;
z
float z;

Meta