Vector

Vector for coordinates storing and operations.

Constructors

this
this(Tuple value)
Undocumented in source.
this
this(T value)
Undocumented in source.
this
this(F args)
Undocumented in source.
this
this(T[coords.length] variables)
Undocumented in source.
this
this(T[] variables)
Undocumented in source.

Members

Aliases

Type
alias Type = T
Undocumented in source.
coordinates
alias coordinates = c
Undocumented in source.
dup
alias dup = type!T

Duplicates the vector, mantaing the type, variables' names and their value.

Functions

opBinary
typeof(this) opBinary(F value)

Performs a binary operation on the vector.

opBinaryRight
typeof(this) opBinaryRight(F value)
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
auto opCast()

Converts the vector to the given one, mantaining the variables's value when possible.

opCast
auto opCast()

Converts the vector into an array of the same size.

opEquals
bool opEquals(F value)

Compares the vector with another vector of the same length or with a single number.

opOpAssign
typeof(this) opOpAssign(F value)

Performs an assign operation on the vector, modifying it.

opUnary
typeof(this) opUnary()

Performs an unary operation on the vector.

toString
string toString()

Converts the vector into a string for logging and debugging purposes.

type
auto type()

Changes the vector's type.

Properties

length
double length [@property getter]

Gets the vector's length.

length
double length [@property setter]

Sets the vector's length.

tuple
Tuple tuple [@property getter]

Gets the vector as a constant tuple.

Variables

isFloatingPoint
enum bool isFloatingPoint;
Undocumented in source.

Meta