Skip to content

[mxcad_3d API Document](../README. md)/Mx3dGeCircuit

Class: Mx3dGeCircle ​

Non parametric geometric circle

Hierarchy ​

Table of contents ​

Constructors ​

Methods ​

Constructors ​

constructor ​

• new Mx3dGeCircle()

Create a default circular object.

Overrides ​

Mx3dGeObject.constructor

• new Mx3dGeCircle(theA2, theRadius)

Create a circular object with a coordinate system and radius.

Parameters ​

NameTypeDescription
TheA2[Mx3dGeCSYSR] (Mx3dGeCSYSR. md)Coordinate system
TheRadiusNumberThe radius of a circle

Overrides ​

Mx3dGeObject.constructor

Methods ​

Area ​

▸ Area(): number

Return the area of a circle.

Returns ​

number

The area of a circle.


Axis ​

▸ Axis(): Mx3dGeAxis

Return the axis of the circle.

Returns ​

Mx3dGeAxis

The axis of a circle.


Contains ​

▸ Contains(theP, theLinearTolerance): boolean

Determine whether a point is on a circle.

Parameters ​

NameTypeDescription
TheP[Mx3dGePoint] (Mx3dGePoint. md)Point
The LinearToleranceNumberLinear Tolerance

Returns ​

boolean

If the point is on a circle, return true; otherwise, return false.


Distance ​

▸ Distance(theP): number

Calculate the distance from a circle to a point.

Parameters ​

NameTypeDescription
TheP[Mx3dGePoint] (Mx3dGePoint. md)Point

Returns ​

number

Distance value.


Length ​

▸ Length(): number

Return the circumference of a circle.

Returns ​

number

The circumference of a circle.


Location ​

▸ Location(): Mx3dGePoint

Return the position of the circle.

Returns ​

Mx3dGePoint

The position point of the circle.


MirrorByAxis ​

▸ MirrorByAxis(theA1): void

Mirror the current circle based on an axis.

Parameters ​

NameTypeDescription
TheA1[Mx3dGeAxis] (Mx3dGeAxis. md)Mirror axis

Returns ​

void


MirrorByCSYSR ​

▸ MirrorByCSYSR(theA2): void

Mirror the current circle based on a coordinate system.

Parameters ​

NameTypeDescription
TheA2[Mx3dGeCSYSR] (Mx3dGeCSYSR. md)Mirror coordinate system

Returns ​

void


MirrorByPoint ​

▸ MirrorByPoint(theP): void

Mirror the current circle based on a point.

Parameters ​

NameTypeDescription
TheP[Mx3dGePoint] (Mx3dGePoint. md)Mirror point

Returns ​

void


MirroredByAxis ​

▸ MirroredByAxis(theA1): Mx3dGeCircle

Return the circle mirrored based on an axis.

Parameters ​

NameTypeDescription
TheA1[Mx3dGeAxis] (Mx3dGeAxis. md)Mirror axis

Returns ​

Mx3dGeCircle

The circle after mirroring.


MirroredByCSYSR ​

▸ MirroredByCSYSR(theA2): Mx3dGeCircle

Return the circle mirrored based on a coordinate system.

Parameters ​

NameTypeDescription
TheA2[Mx3dGeCSYSR] (Mx3dGeCSYSR. md)Mirror coordinate system

Returns ​

Mx3dGeCircle

The circle after mirroring.


MirroredByPoint ​

▸ MirroredByPoint(theP): Mx3dGeCircle

Return the circle mirrored based on a point.

Parameters ​

NameTypeDescription
TheP[Mx3dGePoint] (Mx3dGePoint. md)Mirror point

Returns ​

Mx3dGeCircle

The circle after mirroring.


Position ​

▸ Position(): Mx3dGeCSYSR

Return the coordinate system of a circle.

Returns ​

Mx3dGeCSYSR

The coordinate system of a circle.


Radius ​

▸ Radius(): number

Return the radius of the circle.

Returns ​

number

The radius of a circle.


Rotate ​

▸ Rotate(theA1, theAng): void

Rotate the current circle.

Parameters ​

NameTypeDescription
TheA1[Mx3dGeAxis] (Mx3dGeAxis. md)Rotation axis
TheAngNumberRotation angle

Returns ​

void


Rotated ​

▸ Rotated(theA1, theAng): Mx3dGeCircle

Return the rotated circle.

Parameters ​

NameTypeDescription
TheA1[Mx3dGeAxis] (Mx3dGeAxis. md)Rotation axis
TheAngNumberRotation angle

Returns ​

Mx3dGeCircle

The rotated circle.


Scale ​

▸ Scale(theP, theS): void

Scale the current circle.

Parameters ​

NameTypeDescription
TheP[Mx3dGePoint] (Mx3dGePoint. md)Zoom center point
TheSNumberScale ratio

Returns ​

void


Scaled ​

▸ Scaled(theP, theS): Mx3dGeCircle

Return the scaled circle.

Parameters ​

NameTypeDescription
TheP[Mx3dGePoint] (Mx3dGePoint. md)Zoom center point
TheSNumberScale ratio

Returns ​

Mx3dGeCircle

The scaled circle.


SetAxis ​

▸ SetAxis(theA1): void

Set the axis of the circle.

Parameters ​

NameTypeDescription
TheA1[Mx3dGeAxis] (Mx3dGeAxis. md)The axis of a circle

Returns ​

void


SetLocation ​

▸ SetLocation(theP): void

Set the position of the circle.

Parameters ​

NameTypeDescription
TheP[Mx3dGePoint] (Mx3dGePoint. md)The position point of the circle

Returns ​

void


SetPosition ​

▸ SetPosition(theA2): void

Set the coordinate system for the circle.

Parameters ​

NameTypeDescription
TheA2[Mx3dGeCSYSR] (Mx3dGeCSYSR. md)The coordinate system of a circle

Returns ​

void


SetRadius ​

▸ SetRadius(theRadius): void

Set the radius of the circle.

Parameters ​

NameTypeDescription
TheRadiusNumberThe radius of a circle

Returns ​

void


SquareDistance ​

▸ SquareDistance(theP): number

Calculate the square distance from a circle to a point.

Parameters ​

NameTypeDescription
TheP[Mx3dGePoint] (Mx3dGePoint. md)Point

Returns ​

number

Square distance value.


Transform ​

▸ Transform(theT): void

Transform the current circle according to the transformation matrix.

Parameters ​

NameTypeDescription
theT[Mx3dGeTsf] (Mx3dGeTsf. md)Transform matrix

Returns ​

void


Transformed ​

▸ Transformed(theT): Mx3dGeCircle

Return the circle transformed according to the transformation matrix.

Parameters ​

NameTypeDescription
theT[Mx3dGeTsf] (Mx3dGeTsf. md)Transform matrix

Returns ​

Mx3dGeCircle

The transformed circle.


TranslateBy2Points ​

▸ TranslateBy2Points(theP1, theP2): void

Translate the current circle based on two points.

Parameters ​

NameTypeDescription
TheP1[Mx3dGePoint] (Mx3dGePoint. md)Starting point
TheP2[Mx3dGePoint] (Mx3dGePoint. md)Endpoint

Returns ​

void


TranslateByVec ​

▸ TranslateByVec(theV): void

Translate the current circle based on the vector.

Parameters ​

NameTypeDescription
TheV[Mx3dGeVec] (Mx3dGeVec. md)Translation vector

Returns ​

void


TranslatedBy2Points ​

▸ TranslatedBy2Points(theP1, theP2): Mx3dGeCircle

Return the circle translated based on two points.

Parameters ​

NameTypeDescription
TheP1[Mx3dGePoint] (Mx3dGePoint. md)Starting point
TheP2[Mx3dGePoint] (Mx3dGePoint. md)Endpoint

Returns ​

Mx3dGeCircle

The circle after translation.


TranslatedByVec ​

▸ TranslatedByVec(theV): Mx3dGeCircle

Return the circle translated according to the vector.

Parameters ​

NameTypeDescription
TheV[Mx3dGeVec] (Mx3dGeVec. md)Translation vector

Returns ​

Mx3dGeCircle

The circle after translation.


XAxis ​

▸ XAxis(): Mx3dGeAxis

Return the X-axis of the circle.

Returns ​

Mx3dGeAxis

The X-axis of a circle.


YAxis ​

▸ YAxis(): Mx3dGeAxis

Return the Y-axis of the circle.

Returns ​

Mx3dGeAxis

The Y-axis of a circle.