Skip to content
On this page

mxcad API 文档 / 3d / MxNewMx3dGeVec

Class: MxNewMx3dGeVec

3d.MxNewMx3dGeVec

数学几何基类

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MxNewMx3dGeVec()

Overrides

MxNewMx3dGeObject.constructor

new MxNewMx3dGeVec(x, y, z)

Parameters

NameType
xnumber
ynumber
znumber

Overrides

MxNewMx3dGeObject.constructor

new MxNewMx3dGeVec(thePoint1, thePoint2)

Parameters

NameType
thePoint1MxNewMx3dGePoint
thePoint2MxNewMx3dGePoint

Overrides

MxNewMx3dGeObject.constructor

Properties

imp

Protected imp: any = 0

Inherited from

MxNewMx3dGeObject.imp

Methods

Add

Add(other): void

Parameters

NameType
otherMxNewMx3dGeVec

Returns

void


Added

Added(other): MxNewMx3dGeVec

Parameters

NameType
otherMxNewMx3dGeVec

Returns

MxNewMx3dGeVec


Angle

Angle(other): number

Parameters

NameType
otherMxNewMx3dGeVec

Returns

number


AngleWithRef

AngleWithRef(other, ref): number

Parameters

NameType
otherMxNewMx3dGeVec
refMxNewMx3dGeVec

Returns

number


Cross

Cross(right): void

Parameters

NameType
rightMxNewMx3dGeVec

Returns

void


CrossCross

CrossCross(v1, v2): void

Parameters

NameType
v1MxNewMx3dGeVec
v2MxNewMx3dGeVec

Returns

void


CrossCrossed

CrossCrossed(v1, v2): MxNewMx3dGeVec

Parameters

NameType
v1MxNewMx3dGeVec
v2MxNewMx3dGeVec

Returns

MxNewMx3dGeVec


CrossMagnitude

CrossMagnitude(right): number

Parameters

NameType
rightMxNewMx3dGeVec

Returns

number


CrossSquareMagnitude

CrossSquareMagnitude(right): number

Parameters

NameType
rightMxNewMx3dGeVec

Returns

number


Crossed

Crossed(right): MxNewMx3dGeVec

Parameters

NameType
rightMxNewMx3dGeVec

Returns

MxNewMx3dGeVec


Divide

Divide(scalar): void

Parameters

NameType
scalarnumber

Returns

void


Divided

Divided(scalar): MxNewMx3dGeVec

Parameters

NameType
scalarnumber

Returns

MxNewMx3dGeVec


Dot

Dot(other): number

Parameters

NameType
otherMxNewMx3dGeVec

Returns

number


DotCross

DotCross(v1, v2): number

Parameters

NameType
v1MxNewMx3dGeVec
v2MxNewMx3dGeVec

Returns

number


IsEqual

IsEqual(other, linearTolerance, angularTolerance): boolean

Parameters

NameType
otherMxNewMx3dGeVec
linearTolerancenumber
angularTolerancenumber

Returns

boolean


IsNormal

IsNormal(other, angularTolerance): boolean

Parameters

NameType
otherMxNewMx3dGeVec
angularTolerancenumber

Returns

boolean


IsOpposite

IsOpposite(other, angularTolerance): boolean

Parameters

NameType
otherMxNewMx3dGeVec
angularTolerancenumber

Returns

boolean


IsParallel

IsParallel(other, angularTolerance): boolean

Parameters

NameType
otherMxNewMx3dGeVec
angularTolerancenumber

Returns

boolean


Magnitude

Magnitude(): number

Returns

number


MirrorByAxis

MirrorByAxis(axis): void

Parameters

NameType
axisMxNewMx3dGeAxis

Returns

void


MirrorByCSYSR

MirrorByCSYSR(csysr): void

Parameters

NameType
csysrMxNewMx3dGeCSYSR

Returns

void


MirrorByVec

MirrorByVec(vec): void

Parameters

NameType
vecMxNewMx3dGeVec

Returns

void


MirroredByAxis

MirroredByAxis(axis): MxNewMx3dGeVec

Parameters

NameType
axisMxNewMx3dGeAxis

Returns

MxNewMx3dGeVec


MirroredByCSYSR

MirroredByCSYSR(csysr): MxNewMx3dGeVec

Parameters

NameType
csysrMxNewMx3dGeCSYSR

Returns

MxNewMx3dGeVec


MirroredByVec

MirroredByVec(vec): MxNewMx3dGeVec

Parameters

NameType
vecMxNewMx3dGeVec

Returns

MxNewMx3dGeVec


Multiplied

Multiplied(scalar): MxNewMx3dGeVec

Parameters

NameType
scalarnumber

Returns

MxNewMx3dGeVec


Multiply

Multiply(scalar): void

Parameters

NameType
scalarnumber

Returns

void


Normalize

Normalize(): void

Returns

void


Normalized

Normalized(): MxNewMx3dGeVec

Returns

MxNewMx3dGeVec


Reverse

Reverse(): void

Returns

void


Reversed

Reversed(): MxNewMx3dGeVec

Returns

MxNewMx3dGeVec


Rotate

Rotate(axis, ang): void

Parameters

NameType
axisMxNewMx3dGeAxis
angnumber

Returns

void


Rotated

Rotated(axis, ang): MxNewMx3dGeVec

Parameters

NameType
axisMxNewMx3dGeAxis
angnumber

Returns

MxNewMx3dGeVec


Scale

Scale(s): void

Parameters

NameType
snumber

Returns

void


Scaled

Scaled(s): MxNewMx3dGeVec

Parameters

NameType
snumber

Returns

MxNewMx3dGeVec


SetLinearForm

SetLinearForm(v1, v2): void

Parameters

NameType
v1MxNewMx3dGeVec
v2MxNewMx3dGeVec

Returns

void

SetLinearForm(a1, v1, v2): void

Parameters

NameType
a1number
v1MxNewMx3dGeVec
v2MxNewMx3dGeVec

Returns

void

SetLinearForm(a1, v1, a2, v2): void

Parameters

NameType
a1number
v1MxNewMx3dGeVec
a2number
v2MxNewMx3dGeVec

Returns

void

SetLinearForm(a1, v1, a2, v2, v3): void

Parameters

NameType
a1number
v1MxNewMx3dGeVec
a2number
v2MxNewMx3dGeVec
v3MxNewMx3dGeVec

Returns

void

SetLinearForm(a1, v1, a2, v2, a3, v3): void

Parameters

NameType
a1number
v1MxNewMx3dGeVec
a2number
v2MxNewMx3dGeVec
a3number
v3MxNewMx3dGeVec

Returns

void

SetLinearForm(a1, v1, a2, v2, a3, v3, v4): void

Parameters

NameType
a1number
v1MxNewMx3dGeVec
a2number
v2MxNewMx3dGeVec
a3number
v3MxNewMx3dGeVec
v4MxNewMx3dGeVec

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
rightMxNewMx3dGeVec

Returns

void


Subtracted

Subtracted(right): MxNewMx3dGeVec

Parameters

NameType
rightMxNewMx3dGeVec

Returns

MxNewMx3dGeVec


Transform

Transform(t): void

Parameters

NameType
tMxNewMx3dGeTrsf

Returns

void


Transformed

Transformed(t): MxNewMx3dGeVec

Parameters

NameType
tMxNewMx3dGeTrsf

Returns

MxNewMx3dGeVec


X

X(): number

Returns

number


Y

Y(): number

Returns

number


Z

Z(): number

Returns

number


getImp

getImp(): any

Returns

any

Inherited from

MxNewMx3dGeObject.getImp


initTempObject

Protected initTempObject(imp): void

Parameters

NameType
impany

Returns

void

Inherited from

MxNewMx3dGeObject.initTempObject