Skip to content
On this page

mxcad API 文档 / MdGeDir

Class: MdGeDir

表示一个方向

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

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

Parameters

NameType
p1?number | object | MdGeVec
p2?number
p3?number

Overrides

Mx3dBaseObject.constructor

Properties

imp

Protected imp: any = 0

Inherited from

Mx3dBaseObject.imp

Methods

Angle

Angle(theOther): number

Parameters

NameType
theOtherMdGeDir

Returns

number


AngleWithRef

AngleWithRef(theOther, theVRef): number

Parameters

NameType
theOtherMdGeDir
theVRefMdGeDir

Returns

number


Coord

Coord(theIndex): number

Parameters

NameType
theIndexnumber

Returns

number


Cross

Cross(theRight): void

Parameters

NameType
theRightMdGeDir

Returns

void


CrossCross

CrossCross(theV1, theV2): void

Parameters

NameType
theV1MdGeDir
theV2MdGeDir

Returns

void


CrossCrossed

CrossCrossed(theV1, theV2): MdGeDir

Parameters

NameType
theV1MdGeDir
theV2MdGeDir

Returns

MdGeDir


Crossed

Crossed(theRight): MdGeDir

Parameters

NameType
theRightMdGeDir

Returns

MdGeDir


Dot

Dot(theOther): number

Parameters

NameType
theOtherMdGeDir

Returns

number


DotCross

DotCross(theV1, theV2): number

Parameters

NameType
theV1MdGeDir
theV2MdGeDir

Returns

number


IsEqual

IsEqual(theOther, theAngularTolerance): boolean

Parameters

NameType
theOtherMdGeDir
theAngularTolerancenumber

Returns

boolean


IsNormal

IsNormal(theOther, theAngularTolerance): boolean

Parameters

NameType
theOtherMdGeDir
theAngularTolerancenumber

Returns

boolean


IsOpposite

IsOpposite(theOther, theAngularTolerance): boolean

Parameters

NameType
theOtherMdGeDir
theAngularTolerancenumber

Returns

boolean


IsParallel

IsParallel(theOther, theAngularTolerance): boolean

Parameters

NameType
theOtherMdGeDir
theAngularTolerancenumber

Returns

boolean


MirrorByAxis

MirrorByAxis(theA1): void

Parameters

NameType
theA1MdGeAxis

Returns

void


MirrorByCSYSR

MirrorByCSYSR(theA2): void

Parameters

NameType
theA2MdGeCSYSR

Returns

void


MirrorByVec

MirrorByVec(theV): void

Parameters

NameType
theVMdGeDir

Returns

void


MirroredByAxis

MirroredByAxis(theA1): MdGeDir

Parameters

NameType
theA1MdGeAxis

Returns

MdGeDir


MirroredByCSYSR

MirroredByCSYSR(theA2): MdGeDir

Parameters

NameType
theA2MdGeCSYSR

Returns

MdGeDir


MirroredByVec

MirroredByVec(theV): MdGeDir

Parameters

NameType
theVMdGeDir

Returns

MdGeDir


Reverse

Reverse(): void

Returns

void


Reversed

Reversed(): MdGeDir

Returns

MdGeDir


Rotate

Rotate(theA1, theAng): void

Parameters

NameType
theA1MdGeAxis
theAngnumber

Returns

void


Rotated

Rotated(theA1, theAng): MdGeDir

Parameters

NameType
theA1MdGeAxis
theAngnumber

Returns

MdGeDir


SetCoord

SetCoord(p1, p2, p3?): void

Parameters

NameType
p1number
p2number
p3?number

Returns

void


SetX

SetX(theXv): void

Parameters

NameType
theXvnumber

Returns

void


SetXYZ

SetXYZ(theCoord): void

Parameters

NameType
theCoordMdGeXYZ

Returns

void


SetY

SetY(theYv): void

Parameters

NameType
theYvnumber

Returns

void


SetZ

SetZ(theZv): void

Parameters

NameType
theZvnumber

Returns

void


Transform

Transform(theT): void

Parameters

NameType
theTMdGeTrsf

Returns

void


Transformed

Transformed(theT): MdGeDir

Parameters

NameType
theTMdGeTrsf

Returns

MdGeDir


X

X(): number

Returns

number


XYZ

XYZ(): MdGeXYZ

Returns

MdGeXYZ


Y

Y(): number

Returns

number


Z

Z(): number

Returns

number


getImp

getImp(): any

Returns

any

Inherited from

Mx3dBaseObject.getImp


initTempObject

Protected initTempObject(imp): void

Parameters

NameType
impany

Returns

void

Inherited from

Mx3dBaseObject.initTempObject