Skip to content
On this page

mxcad API 文档 / MdGeVec

Class: MdGeVec

表示一个向量。

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

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

Parameters

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

Overrides

Mx3dBaseObject.constructor

Properties

imp

Protected imp: any = 0

Inherited from

Mx3dBaseObject.imp

Methods

Add

Add(other): void

Parameters

NameType
otherMdGeVec

Returns

void


Added

Added(other): MdGeVec

Parameters

NameType
otherMdGeVec

Returns

MdGeVec


Angle

Angle(other): number

Parameters

NameType
otherMdGeVec

Returns

number


AngleWithRef

AngleWithRef(other, ref): number

Parameters

NameType
otherMdGeVec
refMdGeVec

Returns

number


Coord

Coord(theIndex): number

Parameters

NameType
theIndexnumber

Returns

number


Cross

Cross(right): void

Parameters

NameType
rightMdGeVec

Returns

void


CrossCross

CrossCross(v1, v2): void

Parameters

NameType
v1MdGeVec
v2MdGeVec

Returns

void


CrossCrossed

CrossCrossed(v1, v2): MdGeVec

Parameters

NameType
v1MdGeVec
v2MdGeVec

Returns

MdGeVec


CrossMagnitude

CrossMagnitude(right): number

Parameters

NameType
rightMdGeVec

Returns

number


CrossSquareMagnitude

CrossSquareMagnitude(right): number

Parameters

NameType
rightMdGeVec

Returns

number


Crossed

Crossed(right): MdGeVec

Parameters

NameType
rightMdGeVec

Returns

MdGeVec


Divide

Divide(scalar): void

Parameters

NameType
scalarnumber

Returns

void


Divided

Divided(scalar): MdGeVec

Parameters

NameType
scalarnumber

Returns

MdGeVec


Dot

Dot(other): number

Parameters

NameType
otherMdGeVec

Returns

number


DotCross

DotCross(v1, v2): number

Parameters

NameType
v1MdGeVec
v2MdGeVec

Returns

number


IsEqual

IsEqual(other, linearTolerance, angularTolerance): boolean

Parameters

NameType
otherMdGeVec
linearTolerancenumber
angularTolerancenumber

Returns

boolean


IsNormal

IsNormal(other, angularTolerance): boolean

Parameters

NameType
otherMdGeVec
angularTolerancenumber

Returns

boolean


IsOpposite

IsOpposite(other, angularTolerance): boolean

Parameters

NameType
otherMdGeVec
angularTolerancenumber

Returns

boolean


IsParallel

IsParallel(other, angularTolerance): boolean

Parameters

NameType
otherMdGeVec
angularTolerancenumber

Returns

boolean


Magnitude

Magnitude(): number

Returns

number


MirrorByAxis

MirrorByAxis(axis): void

Parameters

NameType
axisMdGeAxis

Returns

void


MirrorByCSYSR

MirrorByCSYSR(csysr): void

Parameters

NameType
csysrMdGeCSYSR

Returns

void


MirrorByVec

MirrorByVec(vec): void

Parameters

NameType
vecMdGeVec

Returns

void


MirroredByAxis

MirroredByAxis(axis): MdGeVec

Parameters

NameType
axisMdGeAxis

Returns

MdGeVec


MirroredByCSYSR

MirroredByCSYSR(csysr): MdGeVec

Parameters

NameType
csysrMdGeCSYSR

Returns

MdGeVec


MirroredByVec

MirroredByVec(vec): MdGeVec

Parameters

NameType
vecMdGeVec

Returns

MdGeVec


Multiplied

Multiplied(scalar): MdGeVec

Parameters

NameType
scalarnumber

Returns

MdGeVec


Multiply

Multiply(scalar): void

Parameters

NameType
scalarnumber

Returns

void


Normalize

Normalize(): void

Returns

void


Normalized

Normalized(): MdGeVec

Returns

MdGeVec


Reverse

Reverse(): void

Returns

void


Reversed

Reversed(): MdGeVec

Returns

MdGeVec


Rotate

Rotate(axis, ang): void

Parameters

NameType
axisMdGeAxis
angnumber

Returns

void


Rotated

Rotated(axis, ang): MdGeVec

Parameters

NameType
axisMdGeAxis
angnumber

Returns

MdGeVec


Scale

Scale(s): void

Parameters

NameType
snumber

Returns

void


Scaled

Scaled(s): MdGeVec

Parameters

NameType
snumber

Returns

MdGeVec


SetCoord

SetCoord(p1, p2, p3?): void

Parameters

NameType
p1number
p2number
p3?number

Returns

void


SetLinearForm

SetLinearForm(p1, p2, p3?, p4?, p5?, p6?, p7?): void

Parameters

NameType
p1number | MdGeVec
p2MdGeVec
p3?number | MdGeVec
p4?MdGeVec
p5?number | MdGeVec
p6?MdGeVec
p7?MdGeVec

Returns

void


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


SquareMagnitude

SquareMagnitude(): number

Returns

number


Subtract

Subtract(right): void

Parameters

NameType
rightMdGeVec

Returns

void


Subtracted

Subtracted(right): MdGeVec

Parameters

NameType
rightMdGeVec

Returns

MdGeVec


Transform

Transform(t): void

Parameters

NameType
tMdGeTrsf

Returns

void


Transformed

Transformed(t): MdGeVec

Parameters

NameType
tMdGeTrsf

Returns

MdGeVec


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