nape.geom.MatMN
Top
|
Constructor
|
Instance Properties
|
Instance Methods
Overview
nape
nape.callbacks
nape.constraint
nape.dynamics
nape.geom
nape.hacks
nape.phys
nape.shape
nape.space
nape.symbolic
nape.util
type
class
A general MxN dimensional matrix.
This object is not often used in Nape :)
Constructor
function
new
(rows:
Int
, cols:
Int
)
Construct a new Matrix.
Instance Properties
readonly var
cols
:
Int
The number of columns in the matrix.
readonly var
rows
:
Int
The number of rows in the matrix.
Instance Methods
function
mul
(matrix:
MatMN
):
MatMN
Multiple this matrix with another.
inline function
setx
(row:
Int
, col:
Int
, x:
Float
):
Float
Set element at index.
function
transpose
():
MatMN
Transpose matrix, returning a new Matrix.
inline function
x
(row:
Int
, col:
Int
):
Float
Access element at index.