Skip to content
On this page

mxcad API 文档 / MdGeMat

Class: MdGeMat

表示一个矩阵

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MdGeMat(p1?, p2?, p3?, p4?, p5?, p6?, p7?, p8?, p9?)

Parameters

NameType
p1?number | object | MdGeXYZ
p2?number | MdGeXYZ
p3?number | MdGeXYZ
p4?number
p5?number
p6?number
p7?number
p8?number
p9?number

Overrides

Mx3dBaseObject.constructor

Properties

imp

Protected imp: any = 0

Inherited from

Mx3dBaseObject.imp

Methods

Add

Add(other): void

Parameters

NameType
otherMdGeMat

Returns

void


Added

Added(other): MdGeMat

Parameters

NameType
otherMdGeMat

Returns

MdGeMat


ChangeValue

ChangeValue(row, col, value): void

Parameters

NameType
rownumber
colnumber
valuenumber

Returns

void


Column

Column(col): MdGeXYZ

Parameters

NameType
colnumber

Returns

MdGeXYZ


Determinant

Determinant(): number

Returns

number


Diagonal

Diagonal(): MdGeXYZ

Returns

MdGeXYZ


Divide

Divide(scalar): void

Parameters

NameType
scalarnumber

Returns

void


Divided

Divided(scalar): MdGeMat

Parameters

NameType
scalarnumber

Returns

MdGeMat


Invert

Invert(): void

Returns

void


Inverted

Inverted(): MdGeMat

Returns

MdGeMat


IsSingular

IsSingular(): boolean

Returns

boolean


MultipliedByMat

MultipliedByMat(other): MdGeMat

Parameters

NameType
otherMdGeMat

Returns

MdGeMat


MultipliedByS

MultipliedByS(scalar): MdGeMat

Parameters

NameType
scalarnumber

Returns

MdGeMat


MultiplyByMat

MultiplyByMat(other): void

Parameters

NameType
otherMdGeMat

Returns

void


MultiplyByS

MultiplyByS(scalar): void

Parameters

NameType
scalarnumber

Returns

void


Power

Power(n): void

Parameters

NameType
nnumber

Returns

void


Powered

Powered(n): MdGeMat

Parameters

NameType
nnumber

Returns

MdGeMat


PreMultiplyByMat

PreMultiplyByMat(other): void

Parameters

NameType
otherMdGeMat

Returns

void


Row

Row(row): MdGeXYZ

Parameters

NameType
rownumber

Returns

MdGeXYZ


SetCol

SetCol(col, value): void

Parameters

NameType
colnumber
valueMdGeXYZ

Returns

void


SetCols

SetCols(col1, col2, col3): void

Parameters

NameType
col1MdGeXYZ
col2MdGeXYZ
col3MdGeXYZ

Returns

void


SetCross

SetCross(ref): void

Parameters

NameType
refMdGeXYZ

Returns

void


SetDiagonal

SetDiagonal(x1, x2, x3): void

Parameters

NameType
x1number
x2number
x3number

Returns

void


SetDot

SetDot(ref): void

Parameters

NameType
refMdGeXYZ

Returns

void


SetIdentity

SetIdentity(): void

Returns

void


SetRotation

SetRotation(axis, ang): void

Parameters

NameType
axisMdGeXYZ
angnumber

Returns

void


SetRow

SetRow(row, value): void

Parameters

NameType
rownumber
valueMdGeXYZ

Returns

void


SetRows

SetRows(row1, row2, row3): void

Parameters

NameType
row1MdGeXYZ
row2MdGeXYZ
row3MdGeXYZ

Returns

void


SetScale

SetScale(s): void

Parameters

NameType
snumber

Returns

void


SetValue

SetValue(row, col, value): void

Parameters

NameType
rownumber
colnumber
valuenumber

Returns

void


Subtract

Subtract(other): void

Parameters

NameType
otherMdGeMat

Returns

void


Subtracted

Subtracted(other): MdGeMat

Parameters

NameType
otherMdGeMat

Returns

MdGeMat


Transpose

Transpose(): void

Returns

void


Transposed

Transposed(): MdGeMat

Returns

MdGeMat


Value

Value(row, col): number

Parameters

NameType
rownumber
colnumber

Returns

number


getImp

getImp(): any

Returns

any

Inherited from

Mx3dBaseObject.getImp


initTempObject

Protected initTempObject(imp): void

Parameters

NameType
impany

Returns

void

Inherited from

Mx3dBaseObject.initTempObject