gfm v2.0.11 (2015-02-12T17:50:21Z)
Home
Dub
Repo
Vector.opCast
gfm
math
vector
Vector
Casting to small vectors of the same size.
struct
Vector
(T, int N)
nothrow @
nogc
pure const nothrow
U
opCast
(
U
)
(
)
if
(
is
(
typeof
(
U._isVector
)) &&
(
U._N
==
_N
)
)
Examples
vec4f
vf
;
vec4d
vd
=
cast
!(
vec4d
)
vf
;
Meta
Source
See Implementation
gfm
math
vector
Vector
constructors
this
functions
distanceTo
getOrthogonalVector
length
normalize
normalized
opAssign
opBinary
opBinaryRight
opCast
opDollar
opEquals
opIndex
opIndexAssign
opOpAssign
opSlice
opUnary
ptr
squaredDistanceTo
squaredLength
toString
properties
opDispatch
unions
__anonymous
Casting to small vectors of the same size.