mxcad API 文档 / 3d / MdGePoint
Class: MdGePoint
3d.MdGePoint
表示一个点。
Hierarchy
↳
MdGePoint
Table of contents
Constructors
Properties
Methods
- BaryCenter
- Distance
- IsEqual
- MirrorByAxis
- MirrorByCSYSR
- MirrorByPoint
- MirroredByAxis
- MirroredByCSYSR
- MirroredByPoint
- Rotate
- Rotated
- Scale
- Scaled
- SetX
- SetXYZ
- SetY
- SetZ
- Shape
- SquareDistance
- Transform
- Transformed
- TranslateBy2Points
- TranslateByVec
- TranslatedBy2Points
- TranslatedByVec
- Vertex
- X
- Y
- Z
- getImp
- initTempObject
Constructors
constructor
• new MdGePoint(p1?
, p2?
, p3?
)
Parameters
Name | Type |
---|---|
p1? | number | object |
p2? | number |
p3? | number |
Overrides
Properties
imp
• Protected
imp: any
= 0
Inherited from
Methods
BaryCenter
▸ BaryCenter(alpha
, point
, beta
): void
Parameters
Name | Type |
---|---|
alpha | number |
point | MdGePoint |
beta | number |
Returns
void
Distance
▸ Distance(other
): number
Parameters
Name | Type |
---|---|
other | MdGePoint |
Returns
number
IsEqual
▸ IsEqual(other
, linearTolerance
): boolean
Parameters
Name | Type |
---|---|
other | MdGePoint |
linearTolerance | number |
Returns
boolean
MirrorByAxis
▸ MirrorByAxis(axis
): void
Parameters
Name | Type |
---|---|
axis | MdGeAxis |
Returns
void
MirrorByCSYSR
▸ MirrorByCSYSR(csysr
): void
Parameters
Name | Type |
---|---|
csysr | MdGeCSYSR |
Returns
void
MirrorByPoint
▸ MirrorByPoint(point
): void
Parameters
Name | Type |
---|---|
point | MdGePoint |
Returns
void
MirroredByAxis
▸ MirroredByAxis(axis
): MdGePoint
Parameters
Name | Type |
---|---|
axis | MdGeAxis |
Returns
MirroredByCSYSR
▸ MirroredByCSYSR(csysr
): MdGePoint
Parameters
Name | Type |
---|---|
csysr | MdGeCSYSR |
Returns
MirroredByPoint
▸ MirroredByPoint(point
): MdGePoint
Parameters
Name | Type |
---|---|
point | MdGePoint |
Returns
Rotate
▸ Rotate(axis
, ang
): void
Parameters
Name | Type |
---|---|
axis | MdGeAxis |
ang | number |
Returns
void
Rotated
▸ Rotated(axis
, ang
): MdGePoint
Parameters
Name | Type |
---|---|
axis | MdGeAxis |
ang | number |
Returns
Scale
▸ Scale(point
, s
): void
Parameters
Name | Type |
---|---|
point | MdGePoint |
s | number |
Returns
void
Scaled
▸ Scaled(point
, s
): MdGePoint
Parameters
Name | Type |
---|---|
point | MdGePoint |
s | number |
Returns
SetX
▸ SetX(x
): void
Parameters
Name | Type |
---|---|
x | number |
Returns
void
SetXYZ
▸ SetXYZ(x
, y
, z
): void
Parameters
Name | Type |
---|---|
x | number |
y | number |
z | 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
Shape
▸ Shape(): MdGeShape
Returns
SquareDistance
▸ SquareDistance(other
): number
Parameters
Name | Type |
---|---|
other | MdGePoint |
Returns
number
Transform
▸ Transform(trsf
): void
Parameters
Name | Type |
---|---|
trsf | MdGeTrsf |
Returns
void
Transformed
▸ Transformed(trsf
): MdGePoint
Parameters
Name | Type |
---|---|
trsf | MdGeTrsf |
Returns
TranslateBy2Points
▸ TranslateBy2Points(point1
, point2
): void
Parameters
Name | Type |
---|---|
point1 | MdGePoint |
point2 | MdGePoint |
Returns
void
TranslateByVec
▸ TranslateByVec(vec
): void
Parameters
Name | Type |
---|---|
vec | MdGeVec |
Returns
void
TranslatedBy2Points
▸ TranslatedBy2Points(point1
, point2
): MdGePoint
Parameters
Name | Type |
---|---|
point1 | MdGePoint |
point2 | MdGePoint |
Returns
TranslatedByVec
▸ TranslatedByVec(vec
): MdGePoint
Parameters
Name | Type |
---|---|
vec | MdGeVec |
Returns
Vertex
▸ Vertex(): MdGeVertex
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