mxcad_3d API 文档 / Mx3dGeomHyperbola
Class: Mx3dGeomHyperbola 
表示参数几何双曲线的类,继承自 Mx3dGeomConic。
Hierarchy 
- ↳ - Mx3dGeomHyperbola
Table of contents 
Constructors 
Methods 
- Asymptote1
- Asymptote2
- Axis
- ConjugateBranch1
- ConjugateBranch2
- Continuity
- Copy
- D0
- D1
- D2
- D3
- DN
- Directrix1
- Directrix2
- DynamicType
- Eccentricity
- Edge
- FirstParameter
- Focal
- Focus1
- Focus2
- IsCN
- IsClosed
- IsPeriodic
- LastParameter
- Location
- MajorRadius
- MinorRadius
- MirrorByAxis
- MirrorByCSYSR
- MirrorByPoint
- MirroredByAxis
- MirroredByCSYSR
- MirroredByPoint
- OffsetCurve
- OtherBranch
- Parameter
- Period
- Position
- Reverse
- Reversed
- ReversedParameter
- Rotate
- Rotated
- Scale
- Scaled
- SetAxis
- SetLocation
- SetMajorRadius
- SetMinorRadius
- SetPosition
- Transform
- Transformed
- TranslateBy2Points
- TranslateByVec
- TranslatedBy2Points
- TranslatedByVec
- Value
- XAxis
- YAxis
- DownCast
Constructors 
constructor 
• new Mx3dGeomHyperbola(A2, MajorRadius, MinorRadius)
构造函数,接受一个坐标系、长轴半径和短轴半径作为参数。
Parameters 
| Name | Type | Description | 
|---|---|---|
| A2 | Mx3dGeCSYSR | 坐标系对象。 | 
| MajorRadius | number | 长轴半径。 | 
| MinorRadius | number | 短轴半径。 | 
Overrides 
Methods 
Asymptote1 
▸ Asymptote1(): Mx3dGeAxis
获取第一个渐近线。
Returns 
渐近线对象。
Asymptote2 
▸ Asymptote2(): Mx3dGeAxis
获取第二个渐近线。
Returns 
渐近线对象。
Axis 
▸ Axis(): Mx3dGeAxis
获取二次曲线的轴。
Returns 
轴对象。
Inherited from 
ConjugateBranch1 
▸ ConjugateBranch1(): Mx3dGeomHyperbola
获取第一个共轭支。
Returns 
第一个共轭支对象。
ConjugateBranch2 
▸ ConjugateBranch2(): Mx3dGeomHyperbola
获取第二个共轭支。
Returns 
第二个共轭支对象。
Continuity 
▸ Continuity(): MxGAShapeEnum
获取二次曲线的连续性。
Returns 
连续性枚举值。
Inherited from 
Copy 
▸ Copy(): Mx3dGeomObject
复制双曲线对象。
Returns 
复制的双曲线对象。
D0 
▸ D0(U, P): void
获取参数 U 处的点坐标。
Parameters 
| Name | Type | Description | 
|---|---|---|
| U | number | 参数值。 | 
| P | Mx3dGePoint | 点对象。 | 
Returns 
void
D1 
▸ D1(U, P, V1): void
获取参数 U 处的一阶导数。
Parameters 
| Name | Type | Description | 
|---|---|---|
| U | number | 参数值。 | 
| P | Mx3dGePoint | 点对象。 | 
| V1 | Mx3dGeVec | 一阶导数向量。 | 
Returns 
void
D2 
▸ D2(U, P, V1, V2): void
获取参数 U 处的二阶导数。
Parameters 
| Name | Type | Description | 
|---|---|---|
| U | number | 参数值。 | 
| P | Mx3dGePoint | 点对象。 | 
| V1 | Mx3dGeVec | 一阶导数向量。 | 
| V2 | Mx3dGeVec | 二阶导数向量。 | 
Returns 
void
D3 
▸ D3(U, P, V1, V2, V3): void
获取参数 U 处的三阶导数。
Parameters 
| Name | Type | Description | 
|---|---|---|
| U | number | 参数值。 | 
| P | Mx3dGePoint | 点对象。 | 
| V1 | Mx3dGeVec | 一阶导数向量。 | 
| V2 | Mx3dGeVec | 二阶导数向量。 | 
| V3 | Mx3dGeVec | 三阶导数向量。 | 
Returns 
void
DN 
▸ DN(U, N): Mx3dGeVec
获取参数 U 处的 N 阶导数。
Parameters 
| Name | Type | Description | 
|---|---|---|
| U | number | 参数值。 | 
| N | number | 阶数。 | 
Returns 
N 阶导数向量。
Directrix1 
▸ Directrix1(): Mx3dGeAxis
获取第一个准线。
Returns 
准线对象。
Directrix2 
▸ Directrix2(): Mx3dGeAxis
获取第二个准线。
Returns 
准线对象。
DynamicType 
▸ DynamicType(): string
返回对象的动态类型。
Returns 
string
动态类型的字符串。
Overrides 
Eccentricity 
▸ Eccentricity(): number
获取离心率。
Returns 
number
离心率值。
Edge 
▸ Edge(p1, p2): Mx3dShapeEdge
获取双曲线的边。
Parameters 
| Name | Type | Description | 
|---|---|---|
| p1 | number | 第一个参数。 | 
| p2 | number | 第二个参数。 | 
Returns 
双曲线的边对象。
FirstParameter 
▸ FirstParameter(): number
获取双曲线的第一个参数。
Returns 
number
第一个参数。
Focal 
▸ Focal(): number
获取焦距。
Returns 
number
焦距值。
Focus1 
▸ Focus1(): Mx3dGePoint
获取第一个焦点。
Returns 
第一个焦点对象。
Focus2 
▸ Focus2(): Mx3dGePoint
获取第二个焦点。
Returns 
第二个焦点对象。
IsCN 
▸ IsCN(N): boolean
检查二次曲线是否具有指定阶数的连续性。
Parameters 
| Name | Type | Description | 
|---|---|---|
| N | number | 阶数。 | 
Returns 
boolean
如果具有指定阶数的连续性,则返回 true,否则返回 false。
Inherited from 
IsClosed 
▸ IsClosed(): boolean
检查双曲线是否闭合。
Returns 
boolean
如果双曲线是闭合的,返回 true;否则返回 false。
IsPeriodic 
▸ IsPeriodic(): boolean
检查双曲线是否周期性。
Returns 
boolean
如果双曲线是周期性的,返回 true;否则返回 false。
LastParameter 
▸ LastParameter(): number
获取双曲线的最后一个参数。
Returns 
number
最后一个参数。
Location 
▸ Location(): Mx3dGePoint
获取二次曲线的位置。
Returns 
点对象。
Inherited from 
MajorRadius 
▸ MajorRadius(): number
获取长轴半径。
Returns 
number
长轴半径值。
MinorRadius 
▸ MinorRadius(): number
获取短轴半径。
Returns 
number
短轴半径值。
MirrorByAxis 
▸ MirrorByAxis(A1): void
通过轴对几何对象进行镜像变换。
Parameters 
| Name | Type | Description | 
|---|---|---|
| A1 | Mx3dGeAxis | 轴对象。 | 
Returns 
void
Inherited from 
MirrorByCSYSR 
▸ MirrorByCSYSR(A2): void
通过右手坐标系对几何对象进行镜像变换。
Parameters 
| Name | Type | Description | 
|---|---|---|
| A2 | Mx3dGeCSYSR | 右手坐标系对象。 | 
Returns 
void
Inherited from 
MirrorByPoint 
▸ MirrorByPoint(P): void
通过点对几何对象进行镜像变换。
Parameters 
| Name | Type | Description | 
|---|---|---|
| P | Mx3dGePoint | 点对象。 | 
Returns 
void
Inherited from 
MirroredByAxis 
▸ MirroredByAxis(A1): Mx3dGeomHyperbola
返回通过轴镜像变换后的新几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| A1 | Mx3dGeAxis | 轴对象。 | 
Returns 
新的几何对象。
Inherited from 
MirroredByCSYSR 
▸ MirroredByCSYSR(A2): Mx3dGeomHyperbola
返回通过右手坐标系镜像变换后的新几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| A2 | Mx3dGeCSYSR | 右手坐标系对象。 | 
Returns 
新的几何对象。
Inherited from 
MirroredByPoint 
▸ MirroredByPoint(P): Mx3dGeomHyperbola
返回通过点镜像变换后的新几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| P | Mx3dGePoint | 点对象。 | 
Returns 
新的几何对象。
Inherited from 
OffsetCurve 
▸ OffsetCurve(Offset, V, isNotCheckC0): Mx3dShapeEdge
获取双曲线的偏移曲线。
Parameters 
| Name | Type | Description | 
|---|---|---|
| Offset | number | 偏移量。 | 
| V | Mx3dGeDir | 方向向量,与偏移方向垂直。 | 
| isNotCheckC0 | boolean | 是否检查 C0 连续性。 | 
Returns 
偏移曲线的边对象。
OtherBranch 
▸ OtherBranch(): Mx3dGeomHyperbola
获取另一支双曲线。
Returns 
另一支双曲线对象。
Parameter 
▸ Parameter(): number
获取参数。
Returns 
number
参数值。
Period 
▸ Period(): number
返回曲线的周期。
Returns 
number
曲线的周期。
Inherited from 
Position 
▸ Position(): Mx3dGeCSYSR
获取二次曲线的右手坐标系。
Returns 
右手坐标系对象。
Inherited from 
Reverse 
▸ Reverse(): void
反转二次曲线的方向。
Returns 
void
Inherited from 
Reversed 
▸ Reversed(): Mx3dGeomHyperbola
返回反向后的新几何曲线对象。
Returns 
新的几何曲线对象。
Inherited from 
ReversedParameter 
▸ ReversedParameter(U): number
获取反向参数。
Parameters 
| Name | Type | Description | 
|---|---|---|
| U | number | 参数值。 | 
Returns 
number
反向参数值。
Rotate 
▸ Rotate(A1, Ang): void
旋转几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| A1 | Mx3dGeAxis | 轴对象。 | 
| Ang | number | 旋转角度。 | 
Returns 
void
Inherited from 
Rotated 
▸ Rotated(A1, Ang): Mx3dGeomHyperbola
返回旋转后的新几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| A1 | Mx3dGeAxis | 轴对象。 | 
| Ang | number | 旋转角度。 | 
Returns 
新的几何对象。
Inherited from 
Scale 
▸ Scale(P, S): void
缩放几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| P | Mx3dGePoint | 点对象。 | 
| S | number | 缩放比例。 | 
Returns 
void
Inherited from 
Scaled 
▸ Scaled(P, S): Mx3dGeomHyperbola
返回缩放后的新几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| P | Mx3dGePoint | 点对象。 | 
| S | number | 缩放比例。 | 
Returns 
新的几何对象。
Inherited from 
SetAxis 
▸ SetAxis(theA1): void
设置二次曲线的轴。
Parameters 
| Name | Type | Description | 
|---|---|---|
| theA1 | Mx3dGeAxis | 轴对象。 | 
Returns 
void
Inherited from 
SetLocation 
▸ SetLocation(theP): void
设置二次曲线的位置。
Parameters 
| Name | Type | Description | 
|---|---|---|
| theP | Mx3dGePoint | 点对象。 | 
Returns 
void
Inherited from 
SetMajorRadius 
▸ SetMajorRadius(MajorRadius): void
设置长轴半径。
Parameters 
| Name | Type | Description | 
|---|---|---|
| MajorRadius | number | 长轴半径。 | 
Returns 
void
SetMinorRadius 
▸ SetMinorRadius(MinorRadius): void
设置短轴半径。
Parameters 
| Name | Type | Description | 
|---|---|---|
| MinorRadius | number | 短轴半径。 | 
Returns 
void
SetPosition 
▸ SetPosition(theA2): void
设置二次曲线的右手坐标系。
Parameters 
| Name | Type | Description | 
|---|---|---|
| theA2 | Mx3dGeCSYSR | 右手坐标系对象。 | 
Returns 
void
Inherited from 
Transform 
▸ Transform(T): void
对双曲线进行变换。
Parameters 
| Name | Type | Description | 
|---|---|---|
| T | Mx3dGeTrsf | 变换对象。 | 
Returns 
void
Transformed 
▸ Transformed(T): Mx3dGeomHyperbola
返回变换后的新几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| T | Mx3dGeTrsf | 变换对象。 | 
Returns 
新的几何对象。
Inherited from 
TranslateBy2Points 
▸ TranslateBy2Points(P1, P2): void
通过两个点平移几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| P1 | Mx3dGePoint | 起始点对象。 | 
| P2 | Mx3dGePoint | 终止点对象。 | 
Returns 
void
Inherited from 
Mx3dGeomConic.TranslateBy2Points
TranslateByVec 
▸ TranslateByVec(V): void
通过向量平移几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| V | Mx3dGeVec | 向量对象。 | 
Returns 
void
Inherited from 
TranslatedBy2Points 
▸ TranslatedBy2Points(P1, P2): Mx3dGeomHyperbola
返回通过两个点平移后的新几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| P1 | Mx3dGePoint | 起始点对象。 | 
| P2 | Mx3dGePoint | 终止点对象。 | 
Returns 
新的几何对象。
Inherited from 
Mx3dGeomConic.TranslatedBy2Points
TranslatedByVec 
▸ TranslatedByVec(V): Mx3dGeomHyperbola
返回通过向量平移后的新几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| V | Mx3dGeVec | 向量对象。 | 
Returns 
新的几何对象。
Inherited from 
Value 
▸ Value(U): Mx3dGePoint
返回给定参数 U 处的点。
Parameters 
| Name | Type | Description | 
|---|---|---|
| U | number | 参数值。 | 
Returns 
给定参数处的点对象。
Inherited from 
XAxis 
▸ XAxis(): Mx3dGeAxis
获取二次曲线的 X 轴。
Returns 
X 轴对象。
Inherited from 
YAxis 
▸ YAxis(): Mx3dGeAxis
获取二次曲线的 Y 轴。
Returns 
Y 轴对象。
Inherited from 
DownCast 
▸ Static DownCast(theObject): Mx3dGeomHyperbola
父类对象转 Mx3dGeomHyperbola 类对象
Parameters 
| Name | Type | Description | 
|---|---|---|
| theObject | Mx3dGeomObject | 父类对象 | 
Returns 
Mx3dGeomHyperbola 类对象