Vector3

Utility template struct for manipulating 3-dimensional vectors.

Constructors

this
this(T X, T Y, T Z)

Construct the vector from its coordinates

this
this(Vector3!(E) otherVector)

Construct the vector from another type of vector

Members

Functions

opAssign
Vector3!(T) opAssign(Vector3!(E) otherVector)

Assign the value of another vector whose type can be converted to T.

opBinary
Vector3!(T) opBinary(Vector3!(E) otherVector)

Add/Subtract between two vector3's.

opBinary
Vector3!(T) opBinary(E num)

Multiply/Divide a Vector3 with a numaric value.

opEquals
bool opEquals(const Vector3!(E) otherVector)

Compare two vectors for equality.

opOpAssign
Vector3!(T) opOpAssign(Vector3!(E) otherVector)

Assign Add/Subtract with another vector3.

opUnary
Vector3!(T) opUnary()

Invert the members of the vector.

toString
string toString()

Output the string representation of the Vector3.

Variables

x
T x;

X coordinate of the vector.

y
T y;

Y coordinate of the vector.

z
T z;

Z coordinate of the vector.

Meta