dg2d ~master (2020-11-11T23:31:17Z)
Dub
Repo
Point.opBinary
dg2d
point
Point
operator overload for add, subtract or multiply.
Point
opBinary
(Point rhs)
Point
opBinary
(T rhs)
Point
opBinary
(T[2] rhs)
struct
Point
Point
opBinary
(
string
op
T
)
(
T
[2]
rhs
)
if
(
op.among
!("+", "-", "*") &&
canConvertToScalar
(
T
)
)
Meta
Source
See Implementation
dg2d
point
Point
constructors
this
functions
isZero
opBinary
variables
x
y
operator overload for add, subtract or multiply.