mxcad API 文档 / MdGeMat
Class: MdGeMat
表示一个矩阵
Hierarchy
↳
MdGeMat
Table of contents
Constructors
Properties
Methods
- Add
- Added
- ChangeValue
- Column
- Determinant
- Diagonal
- Divide
- Divided
- Invert
- Inverted
- IsSingular
- MultipliedByMat
- MultipliedByS
- MultiplyByMat
- MultiplyByS
- Power
- Powered
- PreMultiplyByMat
- Row
- SetCol
- SetCols
- SetCross
- SetDiagonal
- SetDot
- SetIdentity
- SetRotation
- SetRow
- SetRows
- SetScale
- SetValue
- Subtract
- Subtracted
- Transpose
- Transposed
- Value
- getImp
- initTempObject
Constructors
constructor
• new MdGeMat(p1?
, p2?
, p3?
, p4?
, p5?
, p6?
, p7?
, p8?
, p9?
)
Parameters
Name | Type |
---|---|
p1? | number | object | MdGeXYZ |
p2? | number | MdGeXYZ |
p3? | number | MdGeXYZ |
p4? | number |
p5? | number |
p6? | number |
p7? | number |
p8? | number |
p9? | number |
Overrides
Properties
imp
• Protected
imp: any
= 0
Inherited from
Methods
Add
▸ Add(other
): void
Parameters
Name | Type |
---|---|
other | MdGeMat |
Returns
void
Added
▸ Added(other
): MdGeMat
Parameters
Name | Type |
---|---|
other | MdGeMat |
Returns
ChangeValue
▸ ChangeValue(row
, col
, value
): void
Parameters
Name | Type |
---|---|
row | number |
col | number |
value | number |
Returns
void
Column
▸ Column(col
): MdGeXYZ
Parameters
Name | Type |
---|---|
col | number |
Returns
Determinant
▸ Determinant(): number
Returns
number
Diagonal
▸ Diagonal(): MdGeXYZ
Returns
Divide
▸ Divide(scalar
): void
Parameters
Name | Type |
---|---|
scalar | number |
Returns
void
Divided
▸ Divided(scalar
): MdGeMat
Parameters
Name | Type |
---|---|
scalar | number |
Returns
Invert
▸ Invert(): void
Returns
void
Inverted
▸ Inverted(): MdGeMat
Returns
IsSingular
▸ IsSingular(): boolean
Returns
boolean
MultipliedByMat
▸ MultipliedByMat(other
): MdGeMat
Parameters
Name | Type |
---|---|
other | MdGeMat |
Returns
MultipliedByS
▸ MultipliedByS(scalar
): MdGeMat
Parameters
Name | Type |
---|---|
scalar | number |
Returns
MultiplyByMat
▸ MultiplyByMat(other
): void
Parameters
Name | Type |
---|---|
other | MdGeMat |
Returns
void
MultiplyByS
▸ MultiplyByS(scalar
): void
Parameters
Name | Type |
---|---|
scalar | number |
Returns
void
Power
▸ Power(n
): void
Parameters
Name | Type |
---|---|
n | number |
Returns
void
Powered
▸ Powered(n
): MdGeMat
Parameters
Name | Type |
---|---|
n | number |
Returns
PreMultiplyByMat
▸ PreMultiplyByMat(other
): void
Parameters
Name | Type |
---|---|
other | MdGeMat |
Returns
void
Row
▸ Row(row
): MdGeXYZ
Parameters
Name | Type |
---|---|
row | number |
Returns
SetCol
▸ SetCol(col
, value
): void
Parameters
Name | Type |
---|---|
col | number |
value | MdGeXYZ |
Returns
void
SetCols
▸ SetCols(col1
, col2
, col3
): void
Parameters
Name | Type |
---|---|
col1 | MdGeXYZ |
col2 | MdGeXYZ |
col3 | MdGeXYZ |
Returns
void
SetCross
▸ SetCross(ref
): void
Parameters
Name | Type |
---|---|
ref | MdGeXYZ |
Returns
void
SetDiagonal
▸ SetDiagonal(x1
, x2
, x3
): void
Parameters
Name | Type |
---|---|
x1 | number |
x2 | number |
x3 | number |
Returns
void
SetDot
▸ SetDot(ref
): void
Parameters
Name | Type |
---|---|
ref | MdGeXYZ |
Returns
void
SetIdentity
▸ SetIdentity(): void
Returns
void
SetRotation
▸ SetRotation(axis
, ang
): void
Parameters
Name | Type |
---|---|
axis | MdGeXYZ |
ang | number |
Returns
void
SetRow
▸ SetRow(row
, value
): void
Parameters
Name | Type |
---|---|
row | number |
value | MdGeXYZ |
Returns
void
SetRows
▸ SetRows(row1
, row2
, row3
): void
Parameters
Name | Type |
---|---|
row1 | MdGeXYZ |
row2 | MdGeXYZ |
row3 | MdGeXYZ |
Returns
void
SetScale
▸ SetScale(s
): void
Parameters
Name | Type |
---|---|
s | number |
Returns
void
SetValue
▸ SetValue(row
, col
, value
): void
Parameters
Name | Type |
---|---|
row | number |
col | number |
value | number |
Returns
void
Subtract
▸ Subtract(other
): void
Parameters
Name | Type |
---|---|
other | MdGeMat |
Returns
void
Subtracted
▸ Subtracted(other
): MdGeMat
Parameters
Name | Type |
---|---|
other | MdGeMat |
Returns
Transpose
▸ Transpose(): void
Returns
void
Transposed
▸ Transposed(): MdGeMat
Returns
Value
▸ Value(row
, col
): number
Parameters
Name | Type |
---|---|
row | number |
col | number |
Returns
number
getImp
▸ getImp(): any
Returns
any
Inherited from
initTempObject
▸ Protected
initTempObject(imp
): void
Parameters
Name | Type |
---|---|
imp | any |
Returns
void