Skip to content
On this page

mxcad API 文档 / MdGeCSYS

Class: MdGeCSYS

表示一个坐标系(左手或右手)

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MdGeCSYS(p1?, p2?, p3?)

Parameters

NameType
p1?object | MdGePoint
p2?MdGeDir
p3?MdGeDir

Overrides

Mx3dBaseObject.constructor

Properties

imp

Protected imp: any = 0

Inherited from

Mx3dBaseObject.imp

Methods

Angle

Angle(other): number

Parameters

NameType
otherMdGeCSYS

Returns

number


CSYSR

CSYSR(): MdGeCSYSR

Returns

MdGeCSYSR


Direct

Direct(): boolean

Returns

boolean


IsCoplanarWithAxis

IsCoplanarWithAxis(axis, linearTolerance, angularTolerance): boolean

Parameters

NameType
axisMdGeAxis
linearTolerancenumber
angularTolerancenumber

Returns

boolean


IsCoplanarWithCSYS

IsCoplanarWithCSYS(other, linearTolerance, angularTolerance): boolean

Parameters

NameType
otherMdGeCSYS
linearTolerancenumber
angularTolerancenumber

Returns

boolean


MirrorByAxis

MirrorByAxis(axis): void

Parameters

NameType
axisMdGeAxis

Returns

void


MirrorByCSYSR

MirrorByCSYSR(csysr): void

Parameters

NameType
csysrMdGeCSYSR

Returns

void


MirrorByPoint

MirrorByPoint(point): void

Parameters

NameType
pointMdGePoint

Returns

void


MirroredByAxis

MirroredByAxis(axis): MdGeCSYS

Parameters

NameType
axisMdGeAxis

Returns

MdGeCSYS


MirroredByCSYSR

MirroredByCSYSR(csysr): MdGeCSYS

Parameters

NameType
csysrMdGeCSYSR

Returns

MdGeCSYS


MirroredByPoint

MirroredByPoint(point): MdGeCSYS

Parameters

NameType
pointMdGePoint

Returns

MdGeCSYS


Origin

Origin(): MdGePoint

Returns

MdGePoint


Rotate

Rotate(axis, ang): void

Parameters

NameType
axisMdGeAxis
angnumber

Returns

void


Rotated

Rotated(axis, ang): MdGeCSYS

Parameters

NameType
axisMdGeAxis
angnumber

Returns

MdGeCSYS


Scale

Scale(point, s): void

Parameters

NameType
pointMdGePoint
snumber

Returns

void


Scaled

Scaled(point, s): MdGeCSYS

Parameters

NameType
pointMdGePoint
snumber

Returns

MdGeCSYS


SetOrigin

SetOrigin(p1, p2?, p3?): void

Parameters

NameType
p1number | MdGePoint
p2?number
p3?number

Returns

void


SetXDirection

SetXDirection(x_dir): void

Parameters

NameType
x_dirMdGeDir

Returns

void


SetYDirection

SetYDirection(y_dir): void

Parameters

NameType
y_dirMdGeDir

Returns

void


SetZAxis

SetZAxis(z_axis): void

Parameters

NameType
z_axisMdGeAxis

Returns

void


SetZDirection

SetZDirection(z_dir): void

Parameters

NameType
z_dirMdGeDir

Returns

void


Transform

Transform(t): void

Parameters

NameType
tMdGeTrsf

Returns

void


Transformed

Transformed(t): MdGeCSYS

Parameters

NameType
tMdGeTrsf

Returns

MdGeCSYS


TranslateBy2Points

TranslateBy2Points(point1, point2): void

Parameters

NameType
point1MdGePoint
point2MdGePoint

Returns

void


TranslateByVec

TranslateByVec(vec): void

Parameters

NameType
vecMdGeVec

Returns

void


TranslatedBy2Points

TranslatedBy2Points(point1, point2): MdGeCSYS

Parameters

NameType
point1MdGePoint
point2MdGePoint

Returns

MdGeCSYS


TranslatedByVec

TranslatedByVec(vec): MdGeCSYS

Parameters

NameType
vecMdGeVec

Returns

MdGeCSYS


XDirection

XDirection(): MdGeDir

Returns

MdGeDir


XReverse

XReverse(): void

Returns

void


YDirection

YDirection(): MdGeDir

Returns

MdGeDir


YReverse

YReverse(): void

Returns

void


ZAxis

ZAxis(): MdGeAxis

Returns

MdGeAxis


ZDirection

ZDirection(): MdGeDir

Returns

MdGeDir


ZReverse

ZReverse(): void

Returns

void


getImp

getImp(): any

Returns

any

Inherited from

Mx3dBaseObject.getImp


initTempObject

Protected initTempObject(imp): void

Parameters

NameType
impany

Returns

void

Inherited from

Mx3dBaseObject.initTempObject