Skip to content
On this page

mxcad API 文档 / MdGeXYZ

Class: MdGeXYZ

表示一个坐标

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MdGeXYZ(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

Add

Add(other): void

Parameters

NameType
otherMdGeXYZ

Returns

void


Added

Added(other): MdGeXYZ

Parameters

NameType
otherMdGeXYZ

Returns

MdGeXYZ


ChangeCoord

ChangeCoord(index, value): void

Parameters

NameType
indexnumber
valuenumber

Returns

void


Coord

Coord(index): number

Parameters

NameType
indexnumber

Returns

number


Cross

Cross(other): void

Parameters

NameType
otherMdGeXYZ

Returns

void


CrossCross

CrossCross(coord1, coord2): void

Parameters

NameType
coord1MdGeXYZ
coord2MdGeXYZ

Returns

void


CrossCrossed

CrossCrossed(coord1, coord2): MdGeXYZ

Parameters

NameType
coord1MdGeXYZ
coord2MdGeXYZ

Returns

MdGeXYZ


CrossMagnitude

CrossMagnitude(right): number

Parameters

NameType
rightMdGeXYZ

Returns

number


CrossSquareMagnitude

CrossSquareMagnitude(right): number

Parameters

NameType
rightMdGeXYZ

Returns

number


Crossed

Crossed(other): MdGeXYZ

Parameters

NameType
otherMdGeXYZ

Returns

MdGeXYZ


Divide

Divide(salar): void

Parameters

NameType
salarnumber

Returns

void


Divided

Divided(scalar): MdGeXYZ

Parameters

NameType
scalarnumber

Returns

MdGeXYZ


Dot

Dot(other): number

Parameters

NameType
otherMdGeXYZ

Returns

number


DotCross

DotCross(coord1, coord2): number

Parameters

NameType
coord1MdGeXYZ
coord2MdGeXYZ

Returns

number


IsEqual

IsEqual(other, tolerance): boolean

Parameters

NameType
otherMdGeXYZ
tolerancenumber

Returns

boolean


Modulus

Modulus(): number

Returns

number


MultipliedByMat

MultipliedByMat(matrix): MdGeXYZ

Parameters

NameType
matrixMdGeMat

Returns

MdGeXYZ


MultipliedByS

MultipliedByS(scalar): MdGeXYZ

Parameters

NameType
scalarnumber

Returns

MdGeXYZ


MultipliedByXYZ

MultipliedByXYZ(other): MdGeXYZ

Parameters

NameType
otherMdGeXYZ

Returns

MdGeXYZ


MultiplyByMat

MultiplyByMat(matrix): void

Parameters

NameType
matrixMdGeMat

Returns

void


MultiplyByS

MultiplyByS(scalar): void

Parameters

NameType
scalarnumber

Returns

void


MultiplyByXYZ

MultiplyByXYZ(other): void

Parameters

NameType
otherMdGeXYZ

Returns

void


Normalize

Normalize(): void

Returns

void


Normalized

Normalized(): MdGeXYZ

Returns

MdGeXYZ


Reverse

Reverse(): void

Returns

void


Reversed

Reversed(): MdGeXYZ

Returns

MdGeXYZ


SetCoord

SetCoord(x, y, z?): void

Parameters

NameType
xnumber
ynumber
z?number

Returns

void


SetX

SetX(x): void

Parameters

NameType
xnumber

Returns

void


SetY

SetY(y): void

Parameters

NameType
ynumber

Returns

void


SetZ

SetZ(z): void

Parameters

NameType
znumber

Returns

void


SquareModulus

SquareModulus(): number

Returns

number


Subtract

Subtract(other): void

Parameters

NameType
otherMdGeXYZ

Returns

void


Subtracted

Subtracted(other): MdGeXYZ

Parameters

NameType
otherMdGeXYZ

Returns

MdGeXYZ


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