dplug ~master (2024-09-30T22:25:31Z)
Home
Dub
Repo
Vector.opCast
dplug
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
dplug
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
properties
opDispatch
unions
__anonymous
Casting to small vectors of the same size.