Vector4

Vector4 is one of the core classes of the engine, and includes several built-in helper functions to perform basic vector math operations.

Constructors

this
this(real_t x, real_t y, real_t z, real_t w)
Undocumented in source.
this
this(real_t[4] coord)
Undocumented in source.
this
this(Vector4 b)
Undocumented in source.

Members

Aliases

lerp
alias lerp = linearInterpolate
Undocumented in source.

Enums

Axis
enum Axis
Undocumented in source.

Functions

abs
Vector4 abs()
Undocumented in source. Be warned that the author may not have intended to support it.
ceil
Vector4 ceil()
Undocumented in source. Be warned that the author may not have intended to support it.
cubicInterpolate
Vector4 cubicInterpolate(Vector4 b, Vector4 pre_a, Vector4 post_b, real_t t)
Undocumented in source. Be warned that the author may not have intended to support it.
distanceSquaredTo
real_t distanceSquaredTo(Vector4 b)
Undocumented in source. Be warned that the author may not have intended to support it.
distanceTo
real_t distanceTo(Vector4 b)
Undocumented in source. Be warned that the author may not have intended to support it.
dot
real_t dot(Vector4 b)
Undocumented in source. Be warned that the author may not have intended to support it.
floor
Vector4 floor()
Undocumented in source. Be warned that the author may not have intended to support it.
inverse
Vector4 inverse()
Undocumented in source. Be warned that the author may not have intended to support it.
length
real_t length()
Undocumented in source. Be warned that the author may not have intended to support it.
lengthSquared
real_t lengthSquared()
Undocumented in source. Be warned that the author may not have intended to support it.
linearInterpolate
Vector4 linearInterpolate(Vector4 p_b, real_t p_t)
Undocumented in source. Be warned that the author may not have intended to support it.
maxAxis
int maxAxis()
Undocumented in source. Be warned that the author may not have intended to support it.
minAxis
int minAxis()
Undocumented in source. Be warned that the author may not have intended to support it.
normalize
void normalize()
Undocumented in source. Be warned that the author may not have intended to support it.
normalized
Vector4 normalized()
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
void opAssign(Vector4 b)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Vector4 opBinary(Vector4 other)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Vector4 opBinary(real_t scalar)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
Vector4 opBinaryRight(real_t scalar)
Undocumented in source. Be warned that the author may not have intended to support it.
opCmp
int opCmp(Vector4 other)
Undocumented in source. Be warned that the author may not have intended to support it.
opDispatch
auto opDispatch(float[nArgCount] nArgs)

Swizzle the vector with x, y, z, w, or n. Pass floats as args for any n's; if there are more n's than args, the last arg is used for the rest. If no args are passed at all, 0.0 is used for each n.

opIndex
const(real_t) opIndex(int p_axis)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
real_t opIndex(int p_axis)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
void opOpAssign(Vector4 other)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
void opOpAssign(real_t scalar)
Undocumented in source. Be warned that the author may not have intended to support it.
opUnary
Vector4 opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.
snap
void snap(real_t step)
Undocumented in source. Be warned that the author may not have intended to support it.
snapped
Vector4 snapped(real_t step)
Undocumented in source. Be warned that the author may not have intended to support it.

Unions

__anonymous
union __anonymous
Undocumented in source.

Meta