Vector

Vector type

Constructors

this
this(T e)

Constructor by element type. This vector's each element is filled by given value.

this
this(Range r)

Constructor by InputRange. This vector's all elements are filled by given range.

this
this(Args args)

Constructor by combination of scalar, array, or vector.

Alias This

array

Members

Aliases

ElementType
alias ElementType = T

Element type of this vector type

Functions

array
auto array()

Get raw array of this vector.

hasNaN
bool hasNaN()

Returns whether this vector contains NaN.

opAssign
Vector opAssign(AnotherType value)

Assign operation for vector or array.

opAssign
Vector opAssign(AnotherType value)

Assign operation for scalar. The value fills each element of this vector.

opBinary
Vector opBinary(AnotherType value)

Binary operation between scalar, array or vector type.

opBinaryRight
Vector opBinaryRight(AnotherType value)

Binary operation between matrix, scalar, array or vector type.

opCast
V2 opCast()

Cast operation.

opDispatch
auto ref opDispatch()

Single element access by name. The property is 'x', 'y', 'z', 'w', 'r', 'g', 'b' or 'a'.

opDispatch
const(Vector!(T, s.length)) opDispatch()

Multiple element access by name. The property is combination of 'x', 'y', 'z', 'w', 'r', 'g', 'b' or 'a'.

opDispatch
const(Vector!(T, s.length)) opDispatch(Vector!(T, s.length) value)

Property assign for vector value. This function supports both single and multiple property reference.

opDispatch
T opDispatch(T value)

Property assign for scalar value. This function supports both single and multiple property reference.

opIndex
T opIndex(size_t i)

Indexing operation.

opIndex
T opIndex(size_t i)

Indexing operation.

opOpAssign
Vector opOpAssign(AnotherType value)

Operator assign for vector, array, or scalar type. If the argument type is scalar, the value affects each element of this vector.

opUnary
Vector opUnary()

Unary operation for "+". This function is identity.

opUnary
Vector opUnary()

Unary operation for "-".

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

Dimension
enum Dimension;

Dimension of this vector type

Meta