Skip to content
On this page

mxcad API 文档 / 3d / MdGePoint

Class: MdGePoint

3d.MdGePoint

表示一个点。

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

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

Parameters

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

Overrides

Mx3dBaseObject.constructor

Properties

imp

Protected imp: any = 0

Inherited from

Mx3dBaseObject.imp

Methods

BaryCenter

BaryCenter(alpha, point, beta): void

Parameters

NameType
alphanumber
pointMdGePoint
betanumber

Returns

void


Distance

Distance(other): number

Parameters

NameType
otherMdGePoint

Returns

number


IsEqual

IsEqual(other, linearTolerance): boolean

Parameters

NameType
otherMdGePoint
linearTolerancenumber

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): MdGePoint

Parameters

NameType
axisMdGeAxis

Returns

MdGePoint


MirroredByCSYSR

MirroredByCSYSR(csysr): MdGePoint

Parameters

NameType
csysrMdGeCSYSR

Returns

MdGePoint


MirroredByPoint

MirroredByPoint(point): MdGePoint

Parameters

NameType
pointMdGePoint

Returns

MdGePoint


Rotate

Rotate(axis, ang): void

Parameters

NameType
axisMdGeAxis
angnumber

Returns

void


Rotated

Rotated(axis, ang): MdGePoint

Parameters

NameType
axisMdGeAxis
angnumber

Returns

MdGePoint


Scale

Scale(point, s): void

Parameters

NameType
pointMdGePoint
snumber

Returns

void


Scaled

Scaled(point, s): MdGePoint

Parameters

NameType
pointMdGePoint
snumber

Returns

MdGePoint


SetX

SetX(x): void

Parameters

NameType
xnumber

Returns

void


SetXYZ

SetXYZ(x, y, z): void

Parameters

NameType
xnumber
ynumber
znumber

Returns

void


SetY

SetY(y): void

Parameters

NameType
ynumber

Returns

void


SetZ

SetZ(z): void

Parameters

NameType
znumber

Returns

void


Shape

Shape(): MdGeShape

Returns

MdGeShape


SquareDistance

SquareDistance(other): number

Parameters

NameType
otherMdGePoint

Returns

number


Transform

Transform(trsf): void

Parameters

NameType
trsfMdGeTrsf

Returns

void


Transformed

Transformed(trsf): MdGePoint

Parameters

NameType
trsfMdGeTrsf

Returns

MdGePoint


TranslateBy2Points

TranslateBy2Points(point1, point2): void

Parameters

NameType
point1MdGePoint
point2MdGePoint

Returns

void


TranslateByVec

TranslateByVec(vec): void

Parameters

NameType
vecMdGeVec

Returns

void


TranslatedBy2Points

TranslatedBy2Points(point1, point2): MdGePoint

Parameters

NameType
point1MdGePoint
point2MdGePoint

Returns

MdGePoint


TranslatedByVec

TranslatedByVec(vec): MdGePoint

Parameters

NameType
vecMdGeVec

Returns

MdGePoint


Vertex

Vertex(): MdGeVertex

Returns

MdGeVertex


X

X(): number

Returns

number


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