mxcad API 文档 / MdGeCircle
Class: MdGeCircle
表示一个圆。
Hierarchy
↳
MdGeCircle
Table of contents
Constructors
Properties
Methods
- Area
- Axis
- Contains
- Distance
- Edge
- Length
- Location
- MirrorByAxis
- MirrorByCSYSR
- MirrorByPoint
- MirroredByAxis
- MirroredByCSYSR
- MirroredByPoint
- Position
- Radius
- Rotate
- Rotated
- Scale
- Scaled
- SetAxis
- SetLocation
- SetPosition
- SetRadius
- Shape
- SquareDistance
- Transform
- Transformed
- TranslateBy2Points
- TranslateByVec
- TranslatedBy2Points
- TranslatedByVec
- Wire
- XAxis
- YAxis
- getImp
- initTempObject
Constructors
constructor
• new MdGeCircle(p1?
, p2?
)
Parameters
Name | Type |
---|---|
p1? | object | MdGeCSYSR |
p2? | number |
Overrides
Properties
imp
• Protected
imp: any
= 0
Inherited from
Methods
Area
▸ Area(): number
Returns
number
Axis
▸ Axis(): MdGeAxis
Returns
Contains
▸ Contains(theP
, theLinearTolerance
): boolean
Parameters
Name | Type |
---|---|
theP | MdGePoint |
theLinearTolerance | number |
Returns
boolean
Distance
▸ Distance(theP
): number
Parameters
Name | Type |
---|---|
theP | MdGePoint |
Returns
number
Edge
▸ Edge(p1?
, p2?
): MdGeEdge
Parameters
Name | Type |
---|---|
p1? | number |
p2? | number |
Returns
Length
▸ Length(): number
Returns
number
Location
▸ Location(): MdGePoint
Returns
MirrorByAxis
▸ MirrorByAxis(theA1
): void
Parameters
Name | Type |
---|---|
theA1 | MdGeAxis |
Returns
void
MirrorByCSYSR
▸ MirrorByCSYSR(theA2
): void
Parameters
Name | Type |
---|---|
theA2 | MdGeCSYSR |
Returns
void
MirrorByPoint
▸ MirrorByPoint(theP
): void
Parameters
Name | Type |
---|---|
theP | MdGePoint |
Returns
void
MirroredByAxis
▸ MirroredByAxis(theA1
): MdGeCircle
Parameters
Name | Type |
---|---|
theA1 | MdGeAxis |
Returns
MirroredByCSYSR
▸ MirroredByCSYSR(theA2
): MdGeCircle
Parameters
Name | Type |
---|---|
theA2 | MdGeCSYSR |
Returns
MirroredByPoint
▸ MirroredByPoint(theP
): MdGeCircle
Parameters
Name | Type |
---|---|
theP | MdGePoint |
Returns
Position
▸ Position(): MdGeCSYSR
Returns
Radius
▸ Radius(): number
Returns
number
Rotate
▸ Rotate(theA1
, theAng
): void
Parameters
Name | Type |
---|---|
theA1 | MdGeAxis |
theAng | number |
Returns
void
Rotated
▸ Rotated(theA1
, theAng
): MdGeCircle
Parameters
Name | Type |
---|---|
theA1 | MdGeAxis |
theAng | number |
Returns
Scale
▸ Scale(theP
, theS
): void
Parameters
Name | Type |
---|---|
theP | MdGePoint |
theS | number |
Returns
void
Scaled
▸ Scaled(theP
, theS
): MdGeCircle
Parameters
Name | Type |
---|---|
theP | MdGePoint |
theS | number |
Returns
SetAxis
▸ SetAxis(theA1
): void
Parameters
Name | Type |
---|---|
theA1 | MdGeAxis |
Returns
void
SetLocation
▸ SetLocation(theP
): void
Parameters
Name | Type |
---|---|
theP | MdGePoint |
Returns
void
SetPosition
▸ SetPosition(theA2
): void
Parameters
Name | Type |
---|---|
theA2 | MdGeCSYSR |
Returns
void
SetRadius
▸ SetRadius(theRadius
): void
Parameters
Name | Type |
---|---|
theRadius | number |
Returns
void
Shape
▸ Shape(): MdGeShape
Returns
SquareDistance
▸ SquareDistance(theP
): number
Parameters
Name | Type |
---|---|
theP | MdGePoint |
Returns
number
Transform
▸ Transform(theT
): void
Parameters
Name | Type |
---|---|
theT | MdGeTrsf |
Returns
void
Transformed
▸ Transformed(theT
): MdGeCircle
Parameters
Name | Type |
---|---|
theT | MdGeTrsf |
Returns
TranslateBy2Points
▸ TranslateBy2Points(theP1
, theP2
): void
Parameters
Name | Type |
---|---|
theP1 | MdGePoint |
theP2 | MdGePoint |
Returns
void
TranslateByVec
▸ TranslateByVec(theV
): void
Parameters
Name | Type |
---|---|
theV | MdGeVec |
Returns
void
TranslatedBy2Points
▸ TranslatedBy2Points(theP1
, theP2
): MdGeCircle
Parameters
Name | Type |
---|---|
theP1 | MdGePoint |
theP2 | MdGePoint |
Returns
TranslatedByVec
▸ TranslatedByVec(theV
): MdGeCircle
Parameters
Name | Type |
---|---|
theV | MdGeVec |
Returns
Wire
▸ Wire(): MdGeWire
Returns
XAxis
▸ XAxis(): MdGeAxis
Returns
YAxis
▸ YAxis(): MdGeAxis
Returns
getImp
▸ getImp(): any
Returns
any
Inherited from
initTempObject
▸ Protected
initTempObject(imp
): void
Parameters
Name | Type |
---|---|
imp | any |
Returns
void