dvec v0.0.5 (2022-10-24T22:04:52Z)
Dub
Repo
Vec.opOpAssign
dvec
vector
Vec
Adds a vector to this one.
MY_TYPE
opOpAssign
(Vec!(V, size) other)
struct
Vec
(T, size_t size)
ref @
nogc
MY_TYPE
opOpAssign
(
string
op
: "+"
V
)
(
Vec
!(
V
,
size
)
other
)
if
(
isNumeric
!
V
)
if
(
isNumeric
!
T
&&
size
> 0
)
MY_TYPE
opOpAssign
(V scalar)
MY_TYPE
opOpAssign
(Vec!(V, size) other)
MY_TYPE
opOpAssign
(V factor)
MY_TYPE
opOpAssign
(V factor)
Parameters
other
Vec
!(
V
,
size
)
The other vector.
Return Value
Type:
MY_TYPE
A reference to this 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
Adds a vector to this one.