gfm ~master (2021-03-12T16:19:32Z)
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
(
isVector
!
U
&&
(
U._N
==
_N
)
)
Examples
vec4f
vf
;
vec4d
vd
=
cast
!(
vec4d
)
vf
;
Meta
Source
See Implementation
gfm
math
vector
Vector
aliases
fastInverseLength
constructors
this
functions
distanceTo
fastInverseMagnitude
fastNormalize
fastNormalized
getOrthogonalVector
inverseMagnitude
magnitude
normalize
normalized
opAssign
opBinary
opBinaryRight
opCast
opDollar
opEquals
opIndex
opIndexAssign
opOpAssign
opSlice
opUnary
ptr
squaredDistanceTo
squaredMagnitude
toHash
toString
properties
opDispatch
unions
__anonymous
Casting to small vectors of the same size.