Skip to content
On this page

mxcad_3d API 文档 / Mx3dGeomParabola

Class: Mx3dGeomParabola

表示几何二次曲线(圆锥曲线)的类,继承自 Mx3dGeomCurve。

Hierarchy

Table of contents

Constructors

Methods

Constructors

constructor

new Mx3dGeomParabola(A2, Focal)

构造函数,接受一个坐标系和焦距作为参数。

Parameters

NameTypeDescription
A2Mx3dGeCSYSR坐标系对象。
Focalnumber焦距。

Overrides

Mx3dGeomConic.constructor

Methods

Axis

Axis(): Mx3dGeAxis

获取二次曲线的轴。

Returns

Mx3dGeAxis

轴对象。

Inherited from

Mx3dGeomConic.Axis


Continuity

Continuity(): MxGAShapeEnum

获取二次曲线的连续性。

Returns

MxGAShapeEnum

连续性枚举值。

Inherited from

Mx3dGeomConic.Continuity


Copy

Copy(): Mx3dGeomObject

复制抛物线对象。

Returns

Mx3dGeomObject

复制的抛物线对象。


D0

D0(U, P): void

获取参数 U 处的点坐标。

Parameters

NameTypeDescription
Unumber参数值。
PMx3dGePoint点对象。

Returns

void


D1

D1(U, P, V1): void

获取参数 U 处的一阶导数。

Parameters

NameTypeDescription
Unumber参数值。
PMx3dGePoint点对象。
V1Mx3dGeVec一阶导数向量。

Returns

void


D2

D2(U, P, V1, V2): void

获取参数 U 处的二阶导数。

Parameters

NameTypeDescription
Unumber参数值。
PMx3dGePoint点对象。
V1Mx3dGeVec一阶导数向量。
V2Mx3dGeVec二阶导数向量。

Returns

void


D3

D3(U, P, V1, V2, V3): void

获取参数 U 处的三阶导数。

Parameters

NameTypeDescription
Unumber参数值。
PMx3dGePoint点对象。
V1Mx3dGeVec一阶导数向量。
V2Mx3dGeVec二阶导数向量。
V3Mx3dGeVec三阶导数向量。

Returns

void


DN

DN(U, N): Mx3dGeVec

获取参数 U 处的 N 阶导数。

Parameters

NameTypeDescription
Unumber参数值。
Nnumber阶数。

Returns

Mx3dGeVec

N 阶导数向量。


Directrix

Directrix(): Mx3dGeAxis

获取准线。

Returns

Mx3dGeAxis

准线所在轴对象。


DynamicType

DynamicType(): string

返回对象的动态类型。

Returns

string

动态类型的字符串。

Overrides

Mx3dGeomConic.DynamicType


Eccentricity

Eccentricity(): number

获取离心率。

Returns

number

离心率值。


Edge

Edge(p1, p2): Mx3dShapeEdge

获取抛物线的边。

Parameters

NameTypeDescription
p1number第一个参数。
p2number第二个参数。

Returns

Mx3dShapeEdge

抛物线的边对象。


FirstParameter

FirstParameter(): number

获取抛物线的第一个参数。

Returns

number

第一个参数。


Focal

Focal(): number

获取焦距。

Returns

number

焦距值。


Focus

Focus(): Mx3dGePoint

获取焦点。

Returns

Mx3dGePoint

焦点对象。


IsCN

IsCN(N): boolean

检查二次曲线是否具有指定阶数的连续性。

Parameters

NameTypeDescription
Nnumber阶数。

Returns

boolean

如果具有指定阶数的连续性,则返回 true,否则返回 false。

Inherited from

Mx3dGeomConic.IsCN


IsClosed

IsClosed(): boolean

检查抛物线是否闭合。

Returns

boolean

如果抛物线是闭合的,返回 true;否则返回 false。


IsPeriodic

IsPeriodic(): boolean

检查抛物线是否周期性。

Returns

boolean

如果抛物线是周期性的,返回 true;否则返回 false。


LastParameter

LastParameter(): number

获取抛物线的最后一个参数。

Returns

number

最后一个参数。


Location

Location(): Mx3dGePoint

获取二次曲线的位置。

Returns

Mx3dGePoint

点对象。

Inherited from

Mx3dGeomConic.Location


MirrorByAxis

MirrorByAxis(A1): void

通过轴对几何对象进行镜像变换。

Parameters

NameTypeDescription
A1Mx3dGeAxis轴对象。

Returns

void

Inherited from

Mx3dGeomConic.MirrorByAxis


MirrorByCSYSR

MirrorByCSYSR(A2): void

通过右手坐标系对几何对象进行镜像变换。

Parameters

NameTypeDescription
A2Mx3dGeCSYSR右手坐标系对象。

Returns

void

Inherited from

Mx3dGeomConic.MirrorByCSYSR


MirrorByPoint

MirrorByPoint(P): void

通过点对几何对象进行镜像变换。

Parameters

NameTypeDescription
PMx3dGePoint点对象。

Returns

void

Inherited from

Mx3dGeomConic.MirrorByPoint


MirroredByAxis

MirroredByAxis(A1): Mx3dGeomParabola

返回通过轴镜像变换后的新几何对象。

Parameters

NameTypeDescription
A1Mx3dGeAxis轴对象。

Returns

Mx3dGeomParabola

新的几何对象。

Inherited from

Mx3dGeomConic.MirroredByAxis


MirroredByCSYSR

MirroredByCSYSR(A2): Mx3dGeomParabola

返回通过右手坐标系镜像变换后的新几何对象。

Parameters

NameTypeDescription
A2Mx3dGeCSYSR右手坐标系对象。

Returns

Mx3dGeomParabola

新的几何对象。

Inherited from

Mx3dGeomConic.MirroredByCSYSR


MirroredByPoint

MirroredByPoint(P): Mx3dGeomParabola

返回通过点镜像变换后的新几何对象。

Parameters

NameTypeDescription
PMx3dGePoint点对象。

Returns

Mx3dGeomParabola

新的几何对象。

Inherited from

Mx3dGeomConic.MirroredByPoint


OffsetCurve

OffsetCurve(Offset, V, isNotCheckC0): Mx3dShapeEdge

获取抛物线的偏移曲线。

Parameters

NameTypeDescription
Offsetnumber偏移量。
VMx3dGeDir方向向量,与偏移方向垂直。
isNotCheckC0boolean是否检查 C0 连续性。

Returns

Mx3dShapeEdge

偏移曲线的边对象。


Parameter

Parameter(): number

获取参数。

Returns

number

参数值。


ParametricTransformation

ParametricTransformation(T): number

获取参数变换。

Parameters

NameTypeDescription
TMx3dGeTrsf变换对象。

Returns

number

参数变换值。


Period

Period(): number

返回曲线的周期。

Returns

number

曲线的周期。

Inherited from

Mx3dGeomConic.Period


Position

Position(): Mx3dGeCSYSR

获取二次曲线的右手坐标系。

Returns

Mx3dGeCSYSR

右手坐标系对象。

Inherited from

Mx3dGeomConic.Position


Reverse

Reverse(): void

反转二次曲线的方向。

Returns

void

Inherited from

Mx3dGeomConic.Reverse


Reversed

Reversed(): Mx3dGeomParabola

返回反向后的新几何曲线对象。

Returns

Mx3dGeomParabola

新的几何曲线对象。

Inherited from

Mx3dGeomConic.Reversed


ReversedParameter

ReversedParameter(U): number

获取反向参数。

Parameters

NameTypeDescription
Unumber参数值。

Returns

number

反向参数值。


Rotate

Rotate(A1, Ang): void

旋转几何对象。

Parameters

NameTypeDescription
A1Mx3dGeAxis轴对象。
Angnumber旋转角度。

Returns

void

Inherited from

Mx3dGeomConic.Rotate


Rotated

Rotated(A1, Ang): Mx3dGeomParabola

返回旋转后的新几何对象。

Parameters

NameTypeDescription
A1Mx3dGeAxis轴对象。
Angnumber旋转角度。

Returns

Mx3dGeomParabola

新的几何对象。

Inherited from

Mx3dGeomConic.Rotated


Scale

Scale(P, S): void

缩放几何对象。

Parameters

NameTypeDescription
PMx3dGePoint点对象。
Snumber缩放比例。

Returns

void

Inherited from

Mx3dGeomConic.Scale


Scaled

Scaled(P, S): Mx3dGeomParabola

返回缩放后的新几何对象。

Parameters

NameTypeDescription
PMx3dGePoint点对象。
Snumber缩放比例。

Returns

Mx3dGeomParabola

新的几何对象。

Inherited from

Mx3dGeomConic.Scaled


SetAxis

SetAxis(theA1): void

设置二次曲线的轴。

Parameters

NameTypeDescription
theA1Mx3dGeAxis轴对象。

Returns

void

Inherited from

Mx3dGeomConic.SetAxis


SetFocal

SetFocal(Focal): void

设置焦距。

Parameters

NameTypeDescription
Focalnumber焦距。

Returns

void


SetLocation

SetLocation(theP): void

设置二次曲线的位置。

Parameters

NameTypeDescription
thePMx3dGePoint点对象。

Returns

void

Inherited from

Mx3dGeomConic.SetLocation


SetPosition

SetPosition(theA2): void

设置二次曲线的右手坐标系。

Parameters

NameTypeDescription
theA2Mx3dGeCSYSR右手坐标系对象。

Returns

void

Inherited from

Mx3dGeomConic.SetPosition


Transform

Transform(T): void

对抛物线进行变换。

Parameters

NameTypeDescription
TMx3dGeTrsf变换对象。

Returns

void


Transformed

Transformed(T): Mx3dGeomParabola

返回变换后的新几何对象。

Parameters

NameTypeDescription
TMx3dGeTrsf变换对象。

Returns

Mx3dGeomParabola

新的几何对象。

Inherited from

Mx3dGeomConic.Transformed


TransformedParameter

TransformedParameter(U, T): number

获取变换后的参数。

Parameters

NameTypeDescription
Unumber参数值。
TMx3dGeTrsf变换对象。

Returns

number

变换后的参数值。


TranslateBy2Points

TranslateBy2Points(P1, P2): void

通过两个点平移几何对象。

Parameters

NameTypeDescription
P1Mx3dGePoint起始点对象。
P2Mx3dGePoint终止点对象。

Returns

void

Inherited from

Mx3dGeomConic.TranslateBy2Points


TranslateByVec

TranslateByVec(V): void

通过向量平移几何对象。

Parameters

NameTypeDescription
VMx3dGeVec向量对象。

Returns

void

Inherited from

Mx3dGeomConic.TranslateByVec


TranslatedBy2Points

TranslatedBy2Points(P1, P2): Mx3dGeomParabola

返回通过两个点平移后的新几何对象。

Parameters

NameTypeDescription
P1Mx3dGePoint起始点对象。
P2Mx3dGePoint终止点对象。

Returns

Mx3dGeomParabola

新的几何对象。

Inherited from

Mx3dGeomConic.TranslatedBy2Points


TranslatedByVec

TranslatedByVec(V): Mx3dGeomParabola

返回通过向量平移后的新几何对象。

Parameters

NameTypeDescription
VMx3dGeVec向量对象。

Returns

Mx3dGeomParabola

新的几何对象。

Inherited from

Mx3dGeomConic.TranslatedByVec


Value

Value(U): Mx3dGePoint

返回给定参数 U 处的点。

Parameters

NameTypeDescription
Unumber参数值。

Returns

Mx3dGePoint

给定参数处的点对象。

Inherited from

Mx3dGeomConic.Value


XAxis

XAxis(): Mx3dGeAxis

获取二次曲线的 X 轴。

Returns

Mx3dGeAxis

X 轴对象。

Inherited from

Mx3dGeomConic.XAxis


YAxis

YAxis(): Mx3dGeAxis

获取二次曲线的 Y 轴。

Returns

Mx3dGeAxis

Y 轴对象。

Inherited from

Mx3dGeomConic.YAxis


DownCast

Static DownCast(theObject): Mx3dGeomParabola

父类对象转 Mx3dGeomParabola 类对象

Parameters

NameTypeDescription
theObjectMx3dGeomObject父类对象

Returns

Mx3dGeomParabola

Mx3dGeomParabola 类对象