Vector

Undocumented in source.

Constructors

this
this(T val)
Undocumented in source.
this
this(T[] components)
Undocumented in source.
this
this(Vector!(T, N - 1) smallerVector, T extraComponent)
Undocumented in source.

Members

Aliases

_N
alias _N = N
Undocumented in source.
_T
alias _T = T
Undocumented in source.
length
alias length = magnitude
Undocumented in source.

Functions

cross
Vector cross(Vector other)
Undocumented in source. Be warned that the author may not have intended to support it.
dot
T dot(Vector other)
Undocumented in source. Be warned that the author may not have intended to support it.
downgrade
Vector!(T, N - 1) downgrade()
Undocumented in source. Be warned that the author may not have intended to support it.
normalize
Vector normalize()
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Vector opBinary(Vector rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Vector opBinary(scalar rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
Vector opBinaryRight(scalar lhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
TargetVectorType opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Vector other)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
T opIndex(size_t index)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
T opIndexAssign(T value, size_t index)
Undocumented in source. Be warned that the author may not have intended to support it.
opUnary
Vector opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.
reflect
Vector reflect(Vector normal)
Undocumented in source. Be warned that the author may not have intended to support it.
refract
Vector refract(T refractionIndex, Vector normal)
Undocumented in source. Be warned that the author may not have intended to support it.
round
void round()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

angle
scalar angle [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
magnitude
scalar magnitude [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
w
T w [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
w
T w [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
x
T x [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
x
T x [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
y
T y [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
y
T y [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
z
T z [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
z
T z [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta