mxcad API 文档 / 3d / MdGePlane
Class: MdGePlane
3d.MdGePlane
表示一个平面
Hierarchy
↳
MdGePlane
Table of contents
Constructors
Properties
Methods
- Axis
- Contains
- Direct
- DistanceToPlane
- DistanceToPoint
- Face
- Location
- MirrorByAxis
- MirrorByCSYSR
- MirrorByPoint
- MirroredByAxis
- MirroredByCSYSR
- MirroredByPoint
- Position
- Rotate
- Rotated
- Scale
- Scaled
- SetAxis
- SetLocation
- SetPosition
- SquareDistanceToPlane
- SquareDistanceToPoint
- Transform
- Transformed
- TranslateBy2Points
- TranslateByVec
- TranslatedBy2Points
- TranslatedByVec
- UReverse
- VReverse
- XAxis
- YAxis
- getImp
- initTempObject
Constructors
constructor
• new MdGePlane(p1?
, p2?
, p3?
, p4?
)
Parameters
Name | Type |
---|---|
p1? | number | object | MdGePoint | MdGeCSYS |
p2? | number | MdGeDir |
p3? | number |
p4? | number |
Overrides
Properties
imp
• Protected
imp: any
= 0
Inherited from
Methods
Axis
▸ Axis(): MdGeAxis
Returns
Contains
▸ Contains(theP
, theLinearTolerance
): boolean
Parameters
Name | Type |
---|---|
theP | MdGePoint |
theLinearTolerance | number |
Returns
boolean
Direct
▸ Direct(): boolean
Returns
boolean
DistanceToPlane
▸ DistanceToPlane(theOther
): number
Parameters
Name | Type |
---|---|
theOther | MdGePlane |
Returns
number
DistanceToPoint
▸ DistanceToPoint(theP
): number
Parameters
Name | Type |
---|---|
theP | MdGePoint |
Returns
number
Face
▸ Face(p1?
, p2?
, p3?
, p4?
): MdGeFace
Parameters
Name | Type |
---|---|
p1? | number | MdGeWire |
p2? | number | boolean |
p3? | number |
p4? | number |
Returns
Location
▸ Location(): MdGePoint
Returns
MirrorByAxis
▸ MirrorByAxis(theA1
): void
Parameters
Name | Type |
---|---|
theA1 | MdGeAxis |
Returns
void
MirrorByCSYSR
▸ MirrorByCSYSR(theA2
): void
Parameters
Name | Type |
---|---|
theA2 | MdGeCSYSR |
Returns
void
MirrorByPoint
▸ MirrorByPoint(theP
): void
Parameters
Name | Type |
---|---|
theP | MdGePoint |
Returns
void
MirroredByAxis
▸ MirroredByAxis(theA1
): MdGePlane
Parameters
Name | Type |
---|---|
theA1 | MdGeAxis |
Returns
MirroredByCSYSR
▸ MirroredByCSYSR(theA2
): MdGePlane
Parameters
Name | Type |
---|---|
theA2 | MdGeCSYSR |
Returns
MirroredByPoint
▸ MirroredByPoint(theP
): MdGePlane
Parameters
Name | Type |
---|---|
theP | MdGePoint |
Returns
Position
▸ Position(): MdGeCSYS
Returns
Rotate
▸ Rotate(theA1
, theAng
): void
Parameters
Name | Type |
---|---|
theA1 | MdGeAxis |
theAng | number |
Returns
void
Rotated
▸ Rotated(theA1
, theAng
): MdGePlane
Parameters
Name | Type |
---|---|
theA1 | MdGeAxis |
theAng | number |
Returns
Scale
▸ Scale(theP
, theS
): void
Parameters
Name | Type |
---|---|
theP | MdGePoint |
theS | number |
Returns
void
Scaled
▸ Scaled(theP
, theS
): MdGePlane
Parameters
Name | Type |
---|---|
theP | MdGePoint |
theS | number |
Returns
SetAxis
▸ SetAxis(theA1
): void
Parameters
Name | Type |
---|---|
theA1 | MdGeAxis |
Returns
void
SetLocation
▸ SetLocation(theLoc
): void
Parameters
Name | Type |
---|---|
theLoc | MdGePoint |
Returns
void
SetPosition
▸ SetPosition(theA3
): void
Parameters
Name | Type |
---|---|
theA3 | MdGeCSYS |
Returns
void
SquareDistanceToPlane
▸ SquareDistanceToPlane(theOther
): number
Parameters
Name | Type |
---|---|
theOther | MdGePlane |
Returns
number
SquareDistanceToPoint
▸ SquareDistanceToPoint(theP
): number
Parameters
Name | Type |
---|---|
theP | MdGePoint |
Returns
number
Transform
▸ Transform(theT
): void
Parameters
Name | Type |
---|---|
theT | MdGeTrsf |
Returns
void
Transformed
▸ Transformed(theT
): MdGePlane
Parameters
Name | Type |
---|---|
theT | MdGeTrsf |
Returns
TranslateBy2Points
▸ TranslateBy2Points(theP1
, theP2
): void
Parameters
Name | Type |
---|---|
theP1 | MdGePoint |
theP2 | MdGePoint |
Returns
void
TranslateByVec
▸ TranslateByVec(theV
): void
Parameters
Name | Type |
---|---|
theV | MdGeVec |
Returns
void
TranslatedBy2Points
▸ TranslatedBy2Points(theP1
, theP2
): MdGePlane
Parameters
Name | Type |
---|---|
theP1 | MdGePoint |
theP2 | MdGePoint |
Returns
TranslatedByVec
▸ TranslatedByVec(theV
): MdGePlane
Parameters
Name | Type |
---|---|
theV | MdGeVec |
Returns
UReverse
▸ UReverse(): void
Returns
void
VReverse
▸ VReverse(): void
Returns
void
XAxis
▸ XAxis(): MdGeAxis
Returns
YAxis
▸ YAxis(): MdGeAxis
Returns
getImp
▸ getImp(): any
Returns
any
Inherited from
initTempObject
▸ Protected
initTempObject(imp
): void
Parameters
Name | Type |
---|---|
imp | any |
Returns
void