dvec v0.0.5 (2022-10-24T22:04:52Z)
Dub
Repo
Vec.this
dvec
vector
Vec
Constructs a vector from an array of elements.
this
(T[size] elements)
struct
Vec
(T, size_t size)
@
nogc
this
(
T
[
size
]
elements
)
if
(
isNumeric
!
T
&&
size
> 0
)
this
(T[] elements)
this
(T value)
this
(MY_TYPE other)
Parameters
elements
T
[
size
]
The elements to put in the vector.
Meta
Source
See Implementation
dvec
vector
Vec
constructors
this
functions
add
copy
cross
div
dot
mag
mag2
mul
norm
opBinary
opCmp
opIndex
opIndexAssign
opOpAssign
sub
toCartesian
toPolar
toString
static functions
empty
sum
static variables
SIZE
variables
data
Constructs a vector from an array of elements.