Skip to content

mxcad_3d API 文档 / Mx3dGeCircle

Class: Mx3dGeCircle ​

非参数几何圆

Hierarchy ​

Table of contents ​

Constructors ​

Methods ​

Constructors ​

constructor ​

• new Mx3dGeCircle()

创建一个默认的圆对象。

Overrides ​

Mx3dGeObject.constructor

• new Mx3dGeCircle(theA2, theRadius)

创建一个带有坐标系和半径的圆对象。

Parameters ​

NameTypeDescription
theA2Mx3dGeCSYSR坐标系。
theRadiusnumber圆的半径。

Overrides ​

Mx3dGeObject.constructor

Methods ​

Area ​

▸ Area(): number

返回圆的面积。

Returns ​

number

圆的面积。


Axis ​

▸ Axis(): Mx3dGeAxis

返回圆的轴。

Returns ​

Mx3dGeAxis

圆的轴。


Contains ​

▸ Contains(theP, theLinearTolerance): boolean

判断一个点是否在圆上。

Parameters ​

NameTypeDescription
thePMx3dGePoint点。
theLinearTolerancenumber线性容差。

Returns ​

boolean

如果点在圆上返回true,否则返回false。


Distance ​

▸ Distance(theP): number

计算圆到一个点的距离。

Parameters ​

NameTypeDescription
thePMx3dGePoint点。

Returns ​

number

距离值。


Length ​

▸ Length(): number

返回圆的周长。

Returns ​

number

圆的周长。


Location ​

▸ Location(): Mx3dGePoint

返回圆的位置。

Returns ​

Mx3dGePoint

圆的位置点。


MirrorByAxis ​

▸ MirrorByAxis(theA1): void

根据一个轴镜像当前圆。

Parameters ​

NameTypeDescription
theA1Mx3dGeAxis镜像轴。

Returns ​

void


MirrorByCSYSR ​

▸ MirrorByCSYSR(theA2): void

根据一个坐标系镜像当前圆。

Parameters ​

NameTypeDescription
theA2Mx3dGeCSYSR镜像坐标系。

Returns ​

void


MirrorByPoint ​

▸ MirrorByPoint(theP): void

根据一个点镜像当前圆。

Parameters ​

NameTypeDescription
thePMx3dGePoint镜像点。

Returns ​

void


MirroredByAxis ​

▸ MirroredByAxis(theA1): Mx3dGeCircle

返回根据一个轴镜像后的圆。

Parameters ​

NameTypeDescription
theA1Mx3dGeAxis镜像轴。

Returns ​

Mx3dGeCircle

镜像后的圆。


MirroredByCSYSR ​

▸ MirroredByCSYSR(theA2): Mx3dGeCircle

返回根据一个坐标系镜像后的圆。

Parameters ​

NameTypeDescription
theA2Mx3dGeCSYSR镜像坐标系。

Returns ​

Mx3dGeCircle

镜像后的圆。


MirroredByPoint ​

▸ MirroredByPoint(theP): Mx3dGeCircle

返回根据一个点镜像后的圆。

Parameters ​

NameTypeDescription
thePMx3dGePoint镜像点。

Returns ​

Mx3dGeCircle

镜像后的圆。


Position ​

▸ Position(): Mx3dGeCSYSR

返回圆的坐标系。

Returns ​

Mx3dGeCSYSR

圆的坐标系。


Radius ​

▸ Radius(): number

返回圆的半径。

Returns ​

number

圆的半径。


Rotate ​

▸ Rotate(theA1, theAng): void

旋转当前圆。

Parameters ​

NameTypeDescription
theA1Mx3dGeAxis旋转轴。
theAngnumber旋转角度。

Returns ​

void


Rotated ​

▸ Rotated(theA1, theAng): Mx3dGeCircle

返回旋转后的圆。

Parameters ​

NameTypeDescription
theA1Mx3dGeAxis旋转轴。
theAngnumber旋转角度。

Returns ​

Mx3dGeCircle

旋转后的圆。


Scale ​

▸ Scale(theP, theS): void

缩放当前圆。

Parameters ​

NameTypeDescription
thePMx3dGePoint缩放中心点。
theSnumber缩放比例。

Returns ​

void


Scaled ​

▸ Scaled(theP, theS): Mx3dGeCircle

返回缩放后的圆。

Parameters ​

NameTypeDescription
thePMx3dGePoint缩放中心点。
theSnumber缩放比例。

Returns ​

Mx3dGeCircle

缩放后的圆。


SetAxis ​

▸ SetAxis(theA1): void

设置圆的轴。

Parameters ​

NameTypeDescription
theA1Mx3dGeAxis圆的轴。

Returns ​

void


SetLocation ​

▸ SetLocation(theP): void

设置圆的位置。

Parameters ​

NameTypeDescription
thePMx3dGePoint圆的位置点。

Returns ​

void


SetPosition ​

▸ SetPosition(theA2): void

设置圆的坐标系。

Parameters ​

NameTypeDescription
theA2Mx3dGeCSYSR圆的坐标系。

Returns ​

void


SetRadius ​

▸ SetRadius(theRadius): void

设置圆的半径。

Parameters ​

NameTypeDescription
theRadiusnumber圆的半径。

Returns ​

void


SquareDistance ​

▸ SquareDistance(theP): number

计算圆到一个点的平方距离。

Parameters ​

NameTypeDescription
thePMx3dGePoint点。

Returns ​

number

平方距离值。


Transform ​

▸ Transform(theT): void

根据变换矩阵变换当前圆。

Parameters ​

NameTypeDescription
theTMx3dGeTrsf变换矩阵。

Returns ​

void


Transformed ​

▸ Transformed(theT): Mx3dGeCircle

返回根据变换矩阵变换后的圆。

Parameters ​

NameTypeDescription
theTMx3dGeTrsf变换矩阵。

Returns ​

Mx3dGeCircle

变换后的圆。


TranslateBy2Points ​

▸ TranslateBy2Points(theP1, theP2): void

根据两个点平移当前圆。

Parameters ​

NameTypeDescription
theP1Mx3dGePoint起点。
theP2Mx3dGePoint终点。

Returns ​

void


TranslateByVec ​

▸ TranslateByVec(theV): void

根据向量平移当前圆。

Parameters ​

NameTypeDescription
theVMx3dGeVec平移向量。

Returns ​

void


TranslatedBy2Points ​

▸ TranslatedBy2Points(theP1, theP2): Mx3dGeCircle

返回根据两个点平移后的圆。

Parameters ​

NameTypeDescription
theP1Mx3dGePoint起点。
theP2Mx3dGePoint终点。

Returns ​

Mx3dGeCircle

平移后的圆。


TranslatedByVec ​

▸ TranslatedByVec(theV): Mx3dGeCircle

返回根据向量平移后的圆。

Parameters ​

NameTypeDescription
theVMx3dGeVec平移向量。

Returns ​

Mx3dGeCircle

平移后的圆。


XAxis ​

▸ XAxis(): Mx3dGeAxis

返回圆的X轴。

Returns ​

Mx3dGeAxis

圆的X轴。


YAxis ​

▸ YAxis(): Mx3dGeAxis

返回圆的Y轴。

Returns ​

Mx3dGeAxis

圆的Y轴。