mxcad API 文档 / MdGeCSYS
Class: MdGeCSYS
表示一个坐标系(左手或右手)
Hierarchy
↳
MdGeCSYS
Table of contents
Constructors
Properties
Methods
- Angle
- CSYSR
- Direct
- IsCoplanarWithAxis
- IsCoplanarWithCSYS
- MirrorByAxis
- MirrorByCSYSR
- MirrorByPoint
- MirroredByAxis
- MirroredByCSYSR
- MirroredByPoint
- Origin
- Rotate
- Rotated
- Scale
- Scaled
- SetOrigin
- SetXDirection
- SetYDirection
- SetZAxis
- SetZDirection
- Transform
- Transformed
- TranslateBy2Points
- TranslateByVec
- TranslatedBy2Points
- TranslatedByVec
- XDirection
- XReverse
- YDirection
- YReverse
- ZAxis
- ZDirection
- ZReverse
- getImp
- initTempObject
Constructors
constructor
• new MdGeCSYS(p1?
, p2?
, p3?
)
Parameters
Name | Type |
---|---|
p1? | object | MdGePoint |
p2? | MdGeDir |
p3? | MdGeDir |
Overrides
Properties
imp
• Protected
imp: any
= 0
Inherited from
Methods
Angle
▸ Angle(other
): number
Parameters
Name | Type |
---|---|
other | MdGeCSYS |
Returns
number
CSYSR
▸ CSYSR(): MdGeCSYSR
Returns
Direct
▸ Direct(): boolean
Returns
boolean
IsCoplanarWithAxis
▸ IsCoplanarWithAxis(axis
, linearTolerance
, angularTolerance
): boolean
Parameters
Name | Type |
---|---|
axis | MdGeAxis |
linearTolerance | number |
angularTolerance | number |
Returns
boolean
IsCoplanarWithCSYS
▸ IsCoplanarWithCSYS(other
, linearTolerance
, angularTolerance
): boolean
Parameters
Name | Type |
---|---|
other | MdGeCSYS |
linearTolerance | number |
angularTolerance | 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
): MdGeCSYS
Parameters
Name | Type |
---|---|
axis | MdGeAxis |
Returns
MirroredByCSYSR
▸ MirroredByCSYSR(csysr
): MdGeCSYS
Parameters
Name | Type |
---|---|
csysr | MdGeCSYSR |
Returns
MirroredByPoint
▸ MirroredByPoint(point
): MdGeCSYS
Parameters
Name | Type |
---|---|
point | MdGePoint |
Returns
Origin
▸ Origin(): MdGePoint
Returns
Rotate
▸ Rotate(axis
, ang
): void
Parameters
Name | Type |
---|---|
axis | MdGeAxis |
ang | number |
Returns
void
Rotated
▸ Rotated(axis
, ang
): MdGeCSYS
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
): MdGeCSYS
Parameters
Name | Type |
---|---|
point | MdGePoint |
s | number |
Returns
SetOrigin
▸ SetOrigin(p1
, p2?
, p3?
): void
Parameters
Name | Type |
---|---|
p1 | number | MdGePoint |
p2? | number |
p3? | number |
Returns
void
SetXDirection
▸ SetXDirection(x_dir
): void
Parameters
Name | Type |
---|---|
x_dir | MdGeDir |
Returns
void
SetYDirection
▸ SetYDirection(y_dir
): void
Parameters
Name | Type |
---|---|
y_dir | MdGeDir |
Returns
void
SetZAxis
▸ SetZAxis(z_axis
): void
Parameters
Name | Type |
---|---|
z_axis | MdGeAxis |
Returns
void
SetZDirection
▸ SetZDirection(z_dir
): void
Parameters
Name | Type |
---|---|
z_dir | MdGeDir |
Returns
void
Transform
▸ Transform(t
): void
Parameters
Name | Type |
---|---|
t | MdGeTrsf |
Returns
void
Transformed
▸ Transformed(t
): MdGeCSYS
Parameters
Name | Type |
---|---|
t | 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
): MdGeCSYS
Parameters
Name | Type |
---|---|
point1 | MdGePoint |
point2 | MdGePoint |
Returns
TranslatedByVec
▸ TranslatedByVec(vec
): MdGeCSYS
Parameters
Name | Type |
---|---|
vec | MdGeVec |
Returns
XDirection
▸ XDirection(): MdGeDir
Returns
XReverse
▸ XReverse(): void
Returns
void
YDirection
▸ YDirection(): MdGeDir
Returns
YReverse
▸ YReverse(): void
Returns
void
ZAxis
▸ ZAxis(): MdGeAxis
Returns
ZDirection
▸ ZDirection(): MdGeDir
Returns
ZReverse
▸ ZReverse(): void
Returns
void
getImp
▸ getImp(): any
Returns
any
Inherited from
initTempObject
▸ Protected
initTempObject(imp
): void
Parameters
Name | Type |
---|---|
imp | any |
Returns
void