Vector.castTo

Processes casting current vector to a new type of vector. Parametres that can be cange are: vector type, accessors and orientation.

struct Vector(size_t Size, Type = float, string Accessors = "", string Orientation = "horizontal")
@trusted
Vector!(Size, NewType, NewAccessors, NewOrientation)
castTo
(
NewType
string NewAccessors = Accessors
string NewOrientation = Orientation
)
()
if (
is(NewType : Type) ||
is(Type : NewType)
)
if (
Size > 0
)

Meta