dvec v0.0.5 (2022-10-24T22:04:52Z)
Dub
Repo
Vec.opBinary
dvec
vector
Vec
Divides a vector by a factor.
MY_TYPE
opBinary
(Vec!(V, size) other)
MY_TYPE
opBinary
(V scalar)
MY_TYPE
opBinary
(Vec!(V, size) other)
MY_TYPE
opBinary
(V factor)
MY_TYPE
opBinary
(V factor)
struct
Vec
(T, size_t size)
const @
nogc
MY_TYPE
opBinary
(
string
op
: "/"
V
)
(
V
factor
)
if
(
isNumeric
!
V
)
if
(
isNumeric
!
T
&&
size
> 0
)
Parameters
factor
V
The factor to divide by.
Return Value
Type:
MY_TYPE
The resultant 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
Divides a vector by a factor.