mxcad API 文档 / 3d / MxNewMx3dGeVec
Class: MxNewMx3dGeVec
3d.MxNewMx3dGeVec
数学几何基类
Hierarchy
↳
MxNewMx3dGeVec
Table of contents
Constructors
Properties
Methods
- Add
- Added
- Angle
- AngleWithRef
- Cross
- CrossCross
- CrossCrossed
- CrossMagnitude
- CrossSquareMagnitude
- Crossed
- Divide
- Divided
- Dot
- DotCross
- IsEqual
- IsNormal
- IsOpposite
- IsParallel
- Magnitude
- MirrorByAxis
- MirrorByCSYSR
- MirrorByVec
- MirroredByAxis
- MirroredByCSYSR
- MirroredByVec
- Multiplied
- Multiply
- Normalize
- Normalized
- Reverse
- Reversed
- Rotate
- Rotated
- Scale
- Scaled
- SetLinearForm
- SetX
- SetXYZ
- SetY
- SetZ
- SquareMagnitude
- Subtract
- Subtracted
- Transform
- Transformed
- X
- Y
- Z
- getImp
- initTempObject
Constructors
constructor
• new MxNewMx3dGeVec()
Overrides
• new MxNewMx3dGeVec(x
, y
, z
)
Parameters
Name | Type |
---|---|
x | number |
y | number |
z | number |
Overrides
MxNewMx3dGeObject.constructor
• new MxNewMx3dGeVec(thePoint1
, thePoint2
)
Parameters
Name | Type |
---|---|
thePoint1 | MxNewMx3dGePoint |
thePoint2 | MxNewMx3dGePoint |
Overrides
MxNewMx3dGeObject.constructor
Properties
imp
• Protected
imp: any
= 0
Inherited from
Methods
Add
▸ Add(other
): void
Parameters
Name | Type |
---|---|
other | MxNewMx3dGeVec |
Returns
void
Added
▸ Added(other
): MxNewMx3dGeVec
Parameters
Name | Type |
---|---|
other | MxNewMx3dGeVec |
Returns
Angle
▸ Angle(other
): number
Parameters
Name | Type |
---|---|
other | MxNewMx3dGeVec |
Returns
number
AngleWithRef
▸ AngleWithRef(other
, ref
): number
Parameters
Name | Type |
---|---|
other | MxNewMx3dGeVec |
ref | MxNewMx3dGeVec |
Returns
number
Cross
▸ Cross(right
): void
Parameters
Name | Type |
---|---|
right | MxNewMx3dGeVec |
Returns
void
CrossCross
▸ CrossCross(v1
, v2
): void
Parameters
Name | Type |
---|---|
v1 | MxNewMx3dGeVec |
v2 | MxNewMx3dGeVec |
Returns
void
CrossCrossed
▸ CrossCrossed(v1
, v2
): MxNewMx3dGeVec
Parameters
Name | Type |
---|---|
v1 | MxNewMx3dGeVec |
v2 | MxNewMx3dGeVec |
Returns
CrossMagnitude
▸ CrossMagnitude(right
): number
Parameters
Name | Type |
---|---|
right | MxNewMx3dGeVec |
Returns
number
CrossSquareMagnitude
▸ CrossSquareMagnitude(right
): number
Parameters
Name | Type |
---|---|
right | MxNewMx3dGeVec |
Returns
number
Crossed
▸ Crossed(right
): MxNewMx3dGeVec
Parameters
Name | Type |
---|---|
right | MxNewMx3dGeVec |
Returns
Divide
▸ Divide(scalar
): void
Parameters
Name | Type |
---|---|
scalar | number |
Returns
void
Divided
▸ Divided(scalar
): MxNewMx3dGeVec
Parameters
Name | Type |
---|---|
scalar | number |
Returns
Dot
▸ Dot(other
): number
Parameters
Name | Type |
---|---|
other | MxNewMx3dGeVec |
Returns
number
DotCross
▸ DotCross(v1
, v2
): number
Parameters
Name | Type |
---|---|
v1 | MxNewMx3dGeVec |
v2 | MxNewMx3dGeVec |
Returns
number
IsEqual
▸ IsEqual(other
, linearTolerance
, angularTolerance
): boolean
Parameters
Name | Type |
---|---|
other | MxNewMx3dGeVec |
linearTolerance | number |
angularTolerance | number |
Returns
boolean
IsNormal
▸ IsNormal(other
, angularTolerance
): boolean
Parameters
Name | Type |
---|---|
other | MxNewMx3dGeVec |
angularTolerance | number |
Returns
boolean
IsOpposite
▸ IsOpposite(other
, angularTolerance
): boolean
Parameters
Name | Type |
---|---|
other | MxNewMx3dGeVec |
angularTolerance | number |
Returns
boolean
IsParallel
▸ IsParallel(other
, angularTolerance
): boolean
Parameters
Name | Type |
---|---|
other | MxNewMx3dGeVec |
angularTolerance | number |
Returns
boolean
Magnitude
▸ Magnitude(): number
Returns
number
MirrorByAxis
▸ MirrorByAxis(axis
): void
Parameters
Name | Type |
---|---|
axis | MxNewMx3dGeAxis |
Returns
void
MirrorByCSYSR
▸ MirrorByCSYSR(csysr
): void
Parameters
Name | Type |
---|---|
csysr | MxNewMx3dGeCSYSR |
Returns
void
MirrorByVec
▸ MirrorByVec(vec
): void
Parameters
Name | Type |
---|---|
vec | MxNewMx3dGeVec |
Returns
void
MirroredByAxis
▸ MirroredByAxis(axis
): MxNewMx3dGeVec
Parameters
Name | Type |
---|---|
axis | MxNewMx3dGeAxis |
Returns
MirroredByCSYSR
▸ MirroredByCSYSR(csysr
): MxNewMx3dGeVec
Parameters
Name | Type |
---|---|
csysr | MxNewMx3dGeCSYSR |
Returns
MirroredByVec
▸ MirroredByVec(vec
): MxNewMx3dGeVec
Parameters
Name | Type |
---|---|
vec | MxNewMx3dGeVec |
Returns
Multiplied
▸ Multiplied(scalar
): MxNewMx3dGeVec
Parameters
Name | Type |
---|---|
scalar | number |
Returns
Multiply
▸ Multiply(scalar
): void
Parameters
Name | Type |
---|---|
scalar | number |
Returns
void
Normalize
▸ Normalize(): void
Returns
void
Normalized
▸ Normalized(): MxNewMx3dGeVec
Returns
Reverse
▸ Reverse(): void
Returns
void
Reversed
▸ Reversed(): MxNewMx3dGeVec
Returns
Rotate
▸ Rotate(axis
, ang
): void
Parameters
Name | Type |
---|---|
axis | MxNewMx3dGeAxis |
ang | number |
Returns
void
Rotated
▸ Rotated(axis
, ang
): MxNewMx3dGeVec
Parameters
Name | Type |
---|---|
axis | MxNewMx3dGeAxis |
ang | number |
Returns
Scale
▸ Scale(s
): void
Parameters
Name | Type |
---|---|
s | number |
Returns
void
Scaled
▸ Scaled(s
): MxNewMx3dGeVec
Parameters
Name | Type |
---|---|
s | number |
Returns
SetLinearForm
▸ SetLinearForm(v1
, v2
): void
Parameters
Name | Type |
---|---|
v1 | MxNewMx3dGeVec |
v2 | MxNewMx3dGeVec |
Returns
void
▸ SetLinearForm(a1
, v1
, v2
): void
Parameters
Name | Type |
---|---|
a1 | number |
v1 | MxNewMx3dGeVec |
v2 | MxNewMx3dGeVec |
Returns
void
▸ SetLinearForm(a1
, v1
, a2
, v2
): void
Parameters
Name | Type |
---|---|
a1 | number |
v1 | MxNewMx3dGeVec |
a2 | number |
v2 | MxNewMx3dGeVec |
Returns
void
▸ SetLinearForm(a1
, v1
, a2
, v2
, v3
): void
Parameters
Name | Type |
---|---|
a1 | number |
v1 | MxNewMx3dGeVec |
a2 | number |
v2 | MxNewMx3dGeVec |
v3 | MxNewMx3dGeVec |
Returns
void
▸ SetLinearForm(a1
, v1
, a2
, v2
, a3
, v3
): void
Parameters
Name | Type |
---|---|
a1 | number |
v1 | MxNewMx3dGeVec |
a2 | number |
v2 | MxNewMx3dGeVec |
a3 | number |
v3 | MxNewMx3dGeVec |
Returns
void
▸ SetLinearForm(a1
, v1
, a2
, v2
, a3
, v3
, v4
): void
Parameters
Name | Type |
---|---|
a1 | number |
v1 | MxNewMx3dGeVec |
a2 | number |
v2 | MxNewMx3dGeVec |
a3 | number |
v3 | MxNewMx3dGeVec |
v4 | MxNewMx3dGeVec |
Returns
void
SetX
▸ SetX(x
): void
Parameters
Name | Type |
---|---|
x | number |
Returns
void
SetXYZ
▸ SetXYZ(x
, y
, z
): void
Parameters
Name | Type |
---|---|
x | number |
y | number |
z | number |
Returns
void
SetY
▸ SetY(y
): void
Parameters
Name | Type |
---|---|
y | number |
Returns
void
SetZ
▸ SetZ(z
): void
Parameters
Name | Type |
---|---|
z | number |
Returns
void
SquareMagnitude
▸ SquareMagnitude(): number
Returns
number
Subtract
▸ Subtract(right
): void
Parameters
Name | Type |
---|---|
right | MxNewMx3dGeVec |
Returns
void
Subtracted
▸ Subtracted(right
): MxNewMx3dGeVec
Parameters
Name | Type |
---|---|
right | MxNewMx3dGeVec |
Returns
Transform
▸ Transform(t
): void
Parameters
Name | Type |
---|---|
t | MxNewMx3dGeTrsf |
Returns
void
Transformed
▸ Transformed(t
): MxNewMx3dGeVec
Parameters
Name | Type |
---|---|
t | MxNewMx3dGeTrsf |
Returns
X
▸ X(): number
Returns
number
Y
▸ Y(): number
Returns
number
Z
▸ Z(): number
Returns
number
getImp
▸ getImp(): any
Returns
any
Inherited from
initTempObject
▸ Protected
initTempObject(imp
): void
Parameters
Name | Type |
---|---|
imp | any |
Returns
void