liberty-engine v0.0.14-beta.2 (2018-07-02T09:50:23Z)
Dub
Repo
Matrix.opBinary
liberty
math
matrix
Matrix
Matrix
opBinary
(T factor)
struct
Matrix
(T, ubyte R, ubyte C = R, MatrixOrder O = CurrentMatrixOrder)
pure nothrow const @
safe
@
nogc
static if
(
O == MatrixOrder.RowMajor
)
Matrix
opBinary
(
string
op
)
(
T
factor
)
if
(
op
== "*"
)
if
(
R
>= 2 &&
R
<= 4
&&
C
>= 2
&&
C
<= 4
)
ColumnType
opBinary
(RowType x)
auto
opBinary
(U x)
Matrix
opBinary
(U rhs)
Examples
auto
m1
=
Matrix2I
(
3
);
auto
m2
=
m1
*
4
;
assert
(
m2
.
v
== [
12
,
12
,
/**/
12
,
12
]);
Meta
Source
See Implementation
liberty
math
matrix
Matrix
aliases
ColumnType
RowType
rotateXAxix
rotateYAxis
rotateZAxis
type
constructors
this
functions
column
inverse
opBinary
opCast
opEquals
opOpAssign
opUnary
ptr
rotate
rotateX
rotateY
rotateZ
scale
translate
transposed
manifest constants
columnCount
order
rowCount
static functions
constant
diag
fromColumns
fromRows
identity
lookAt
orthographic
perspective
rotateAxis
rotation
scaling
translation
unions
__anonymous
variables
isSquare