mxcad API 文档 / MdGeDir
Class: MdGeDir
表示一个方向
Hierarchy
↳
MdGeDir
Table of contents
Constructors
Properties
Methods
- Angle
- AngleWithRef
- Coord
- Cross
- CrossCross
- CrossCrossed
- Crossed
- Dot
- DotCross
- IsEqual
- IsNormal
- IsOpposite
- IsParallel
- MirrorByAxis
- MirrorByCSYSR
- MirrorByVec
- MirroredByAxis
- MirroredByCSYSR
- MirroredByVec
- Reverse
- Reversed
- Rotate
- Rotated
- SetCoord
- SetX
- SetXYZ
- SetY
- SetZ
- Transform
- Transformed
- X
- XYZ
- Y
- Z
- getImp
- initTempObject
Constructors
constructor
• new MdGeDir(p1?
, p2?
, p3?
)
Parameters
Name | Type |
---|---|
p1? | number | object | MdGeVec |
p2? | number |
p3? | number |
Overrides
Properties
imp
• Protected
imp: any
= 0
Inherited from
Methods
Angle
▸ Angle(theOther
): number
Parameters
Name | Type |
---|---|
theOther | MdGeDir |
Returns
number
AngleWithRef
▸ AngleWithRef(theOther
, theVRef
): number
Parameters
Name | Type |
---|---|
theOther | MdGeDir |
theVRef | MdGeDir |
Returns
number
Coord
▸ Coord(theIndex
): number
Parameters
Name | Type |
---|---|
theIndex | number |
Returns
number
Cross
▸ Cross(theRight
): void
Parameters
Name | Type |
---|---|
theRight | MdGeDir |
Returns
void
CrossCross
▸ CrossCross(theV1
, theV2
): void
Parameters
Name | Type |
---|---|
theV1 | MdGeDir |
theV2 | MdGeDir |
Returns
void
CrossCrossed
▸ CrossCrossed(theV1
, theV2
): MdGeDir
Parameters
Name | Type |
---|---|
theV1 | MdGeDir |
theV2 | MdGeDir |
Returns
Crossed
▸ Crossed(theRight
): MdGeDir
Parameters
Name | Type |
---|---|
theRight | MdGeDir |
Returns
Dot
▸ Dot(theOther
): number
Parameters
Name | Type |
---|---|
theOther | MdGeDir |
Returns
number
DotCross
▸ DotCross(theV1
, theV2
): number
Parameters
Name | Type |
---|---|
theV1 | MdGeDir |
theV2 | MdGeDir |
Returns
number
IsEqual
▸ IsEqual(theOther
, theAngularTolerance
): boolean
Parameters
Name | Type |
---|---|
theOther | MdGeDir |
theAngularTolerance | number |
Returns
boolean
IsNormal
▸ IsNormal(theOther
, theAngularTolerance
): boolean
Parameters
Name | Type |
---|---|
theOther | MdGeDir |
theAngularTolerance | number |
Returns
boolean
IsOpposite
▸ IsOpposite(theOther
, theAngularTolerance
): boolean
Parameters
Name | Type |
---|---|
theOther | MdGeDir |
theAngularTolerance | number |
Returns
boolean
IsParallel
▸ IsParallel(theOther
, theAngularTolerance
): boolean
Parameters
Name | Type |
---|---|
theOther | MdGeDir |
theAngularTolerance | number |
Returns
boolean
MirrorByAxis
▸ MirrorByAxis(theA1
): void
Parameters
Name | Type |
---|---|
theA1 | MdGeAxis |
Returns
void
MirrorByCSYSR
▸ MirrorByCSYSR(theA2
): void
Parameters
Name | Type |
---|---|
theA2 | MdGeCSYSR |
Returns
void
MirrorByVec
▸ MirrorByVec(theV
): void
Parameters
Name | Type |
---|---|
theV | MdGeDir |
Returns
void
MirroredByAxis
▸ MirroredByAxis(theA1
): MdGeDir
Parameters
Name | Type |
---|---|
theA1 | MdGeAxis |
Returns
MirroredByCSYSR
▸ MirroredByCSYSR(theA2
): MdGeDir
Parameters
Name | Type |
---|---|
theA2 | MdGeCSYSR |
Returns
MirroredByVec
▸ MirroredByVec(theV
): MdGeDir
Parameters
Name | Type |
---|---|
theV | MdGeDir |
Returns
Reverse
▸ Reverse(): void
Returns
void
Reversed
▸ Reversed(): MdGeDir
Returns
Rotate
▸ Rotate(theA1
, theAng
): void
Parameters
Name | Type |
---|---|
theA1 | MdGeAxis |
theAng | number |
Returns
void
Rotated
▸ Rotated(theA1
, theAng
): MdGeDir
Parameters
Name | Type |
---|---|
theA1 | MdGeAxis |
theAng | number |
Returns
SetCoord
▸ SetCoord(p1
, p2
, p3?
): void
Parameters
Name | Type |
---|---|
p1 | number |
p2 | number |
p3? | number |
Returns
void
SetX
▸ SetX(theXv
): void
Parameters
Name | Type |
---|---|
theXv | number |
Returns
void
SetXYZ
▸ SetXYZ(theCoord
): void
Parameters
Name | Type |
---|---|
theCoord | MdGeXYZ |
Returns
void
SetY
▸ SetY(theYv
): void
Parameters
Name | Type |
---|---|
theYv | number |
Returns
void
SetZ
▸ SetZ(theZv
): void
Parameters
Name | Type |
---|---|
theZv | number |
Returns
void
Transform
▸ Transform(theT
): void
Parameters
Name | Type |
---|---|
theT | MdGeTrsf |
Returns
void
Transformed
▸ Transformed(theT
): MdGeDir
Parameters
Name | Type |
---|---|
theT | MdGeTrsf |
Returns
X
▸ X(): number
Returns
number
XYZ
▸ XYZ(): MdGeXYZ
Returns
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