zmath ~master (2021-07-15T08:21:03Z)
Home
Dub
Repo
Vector.opBinary
zmath
vector
Vector
Define binary operator + and -
Vector
opBinary
(Vector rhs)
struct
Vector
(T, size_t dim_)
nothrow @
nogc
pure const
Vector
opBinary
(
string
op
)
(
auto
ref
const
Vector
rhs
)
if
(
op
== "+" ||
op
== "-"
)
if
(
__traits(
isFloating
,
T
)
)
Vector
opBinary
(T rhs)
T
opBinary
(Vector rhs)
Vector
opBinary
(Vector rhs)
Meta
Source
See Implementation
zmath
vector
Vector
constructors
this
functions
approxEqual
distance
normalize
opBinary
opBinaryRight
opCast
opEquals
opIndex
opIndexAssign
opUnary
rotate
sq_distance
toString
properties
isFinite
isOk
isUnit
length
ptr
sq_length
unit
static functions
projectOnTo
static variables
W_AXIS
X_AXIS
Y_AXIS
ZERO
Z_AXIS
dim
unions
__anonymous
Define binary operator + and -