dath ~master (2022-03-05T17:42:13Z)
Dub
Repo
Vec.opCast
dath
vector
Vec
Cast to a vector of a different type.
struct
Vec
(T, ulong n)
pure nothrow const
U
opCast
(
U
)
(
)
if
(
is
(
U
:
Vec
!
R
,
R
...
) &&
(
U._n
==
n
)
)
if
(
n
>= 1 &&
isNumeric
!
T
)
Meta
Source
See Implementation
dath
vector
Vec
constructors
this
functions
magnitude
normalize
normalized
opBinary
opCast
opDispatch
opIndex
opIndexAssign
opOpAssign
opUnary
ptr
unions
__anonymous
Cast to a vector of a different type.