mxcad API 文档 / MdGeXYZ
Class: MdGeXYZ
表示一个坐标
Hierarchy
↳
MdGeXYZ
Table of contents
Constructors
Properties
Methods
- Add
- Added
- ChangeCoord
- Coord
- Cross
- CrossCross
- CrossCrossed
- CrossMagnitude
- CrossSquareMagnitude
- Crossed
- Divide
- Divided
- Dot
- DotCross
- IsEqual
- Modulus
- MultipliedByMat
- MultipliedByS
- MultipliedByXYZ
- MultiplyByMat
- MultiplyByS
- MultiplyByXYZ
- Normalize
- Normalized
- Reverse
- Reversed
- SetCoord
- SetX
- SetY
- SetZ
- SquareModulus
- Subtract
- Subtracted
- X
- Y
- Z
- getImp
- initTempObject
Constructors
constructor
• new MdGeXYZ(p1?
, p2?
, p3?
)
Parameters
Name | Type |
---|---|
p1? | number | object |
p2? | number |
p3? | number |
Overrides
Properties
imp
• Protected
imp: any
= 0
Inherited from
Methods
Add
▸ Add(other
): void
Parameters
Name | Type |
---|---|
other | MdGeXYZ |
Returns
void
Added
▸ Added(other
): MdGeXYZ
Parameters
Name | Type |
---|---|
other | MdGeXYZ |
Returns
ChangeCoord
▸ ChangeCoord(index
, value
): void
Parameters
Name | Type |
---|---|
index | number |
value | number |
Returns
void
Coord
▸ Coord(index
): number
Parameters
Name | Type |
---|---|
index | number |
Returns
number
Cross
▸ Cross(other
): void
Parameters
Name | Type |
---|---|
other | MdGeXYZ |
Returns
void
CrossCross
▸ CrossCross(coord1
, coord2
): void
Parameters
Name | Type |
---|---|
coord1 | MdGeXYZ |
coord2 | MdGeXYZ |
Returns
void
CrossCrossed
▸ CrossCrossed(coord1
, coord2
): MdGeXYZ
Parameters
Name | Type |
---|---|
coord1 | MdGeXYZ |
coord2 | MdGeXYZ |
Returns
CrossMagnitude
▸ CrossMagnitude(right
): number
Parameters
Name | Type |
---|---|
right | MdGeXYZ |
Returns
number
CrossSquareMagnitude
▸ CrossSquareMagnitude(right
): number
Parameters
Name | Type |
---|---|
right | MdGeXYZ |
Returns
number
Crossed
▸ Crossed(other
): MdGeXYZ
Parameters
Name | Type |
---|---|
other | MdGeXYZ |
Returns
Divide
▸ Divide(salar
): void
Parameters
Name | Type |
---|---|
salar | number |
Returns
void
Divided
▸ Divided(scalar
): MdGeXYZ
Parameters
Name | Type |
---|---|
scalar | number |
Returns
Dot
▸ Dot(other
): number
Parameters
Name | Type |
---|---|
other | MdGeXYZ |
Returns
number
DotCross
▸ DotCross(coord1
, coord2
): number
Parameters
Name | Type |
---|---|
coord1 | MdGeXYZ |
coord2 | MdGeXYZ |
Returns
number
IsEqual
▸ IsEqual(other
, tolerance
): boolean
Parameters
Name | Type |
---|---|
other | MdGeXYZ |
tolerance | number |
Returns
boolean
Modulus
▸ Modulus(): number
Returns
number
MultipliedByMat
▸ MultipliedByMat(matrix
): MdGeXYZ
Parameters
Name | Type |
---|---|
matrix | MdGeMat |
Returns
MultipliedByS
▸ MultipliedByS(scalar
): MdGeXYZ
Parameters
Name | Type |
---|---|
scalar | number |
Returns
MultipliedByXYZ
▸ MultipliedByXYZ(other
): MdGeXYZ
Parameters
Name | Type |
---|---|
other | MdGeXYZ |
Returns
MultiplyByMat
▸ MultiplyByMat(matrix
): void
Parameters
Name | Type |
---|---|
matrix | MdGeMat |
Returns
void
MultiplyByS
▸ MultiplyByS(scalar
): void
Parameters
Name | Type |
---|---|
scalar | number |
Returns
void
MultiplyByXYZ
▸ MultiplyByXYZ(other
): void
Parameters
Name | Type |
---|---|
other | MdGeXYZ |
Returns
void
Normalize
▸ Normalize(): void
Returns
void
Normalized
▸ Normalized(): MdGeXYZ
Returns
Reverse
▸ Reverse(): void
Returns
void
Reversed
▸ Reversed(): MdGeXYZ
Returns
SetCoord
▸ SetCoord(x
, y
, z?
): void
Parameters
Name | Type |
---|---|
x | number |
y | number |
z? | number |
Returns
void
SetX
▸ SetX(x
): void
Parameters
Name | Type |
---|---|
x | number |
Returns
void
SetY
▸ SetY(y
): void
Parameters
Name | Type |
---|---|
y | number |
Returns
void
SetZ
▸ SetZ(z
): void
Parameters
Name | Type |
---|---|
z | number |
Returns
void
SquareModulus
▸ SquareModulus(): number
Returns
number
Subtract
▸ Subtract(other
): void
Parameters
Name | Type |
---|---|
other | MdGeXYZ |
Returns
void
Subtracted
▸ Subtracted(other
): MdGeXYZ
Parameters
Name | Type |
---|---|
other | MdGeXYZ |
Returns
X
▸ X(): number
Returns
number
Y
▸ Y(): number
Returns
number
Z
▸ Z(): number
Returns
number
getImp
▸ getImp(): any
Returns
any
Inherited from
initTempObject
▸ Protected
initTempObject(imp
): void
Parameters
Name | Type |
---|---|
imp | any |
Returns
void