mxcad API 文档 / MdGeLine
Class: MdGeLine
表示一条直线
Hierarchy
↳
MdGeLine
Table of contents
Constructors
Properties
Methods
- Angle
- Contains
- Direction
- DistanceToLine
- DistanceToPoint
- Edge
- Location
- MirrorByAxis
- MirrorByCSYSR
- MirrorByPoint
- MirroredByAxis
- MirroredByCSYSR
- MirroredByPoint
- Normal
- Position
- Reverse
- Reversed
- Rotate
- Rotated
- Scale
- Scaled
- SetDirection
- SetLocation
- SetPosition
- Shape
- SquareDistanceToLine
- SquareDistanceToPoint
- Transform
- Transformed
- TranslateBy2Points
- TranslateByVec
- TranslatedBy2Points
- TranslatedByVec
- Wire
- getImp
- initTempObject
Constructors
constructor
• new MdGeLine(p1?
, p2?
)
Parameters
Name | Type |
---|---|
p1? | object | MdGePoint |
p2? | MdGeDir |
Overrides
Properties
imp
• Protected
imp: any
= 0
Inherited from
Methods
Angle
▸ Angle(theOther
): number
Parameters
Name | Type |
---|---|
theOther | MdGeLine |
Returns
number
Contains
▸ Contains(theP
, theLinearTolerance
): boolean
Parameters
Name | Type |
---|---|
theP | MdGePoint |
theLinearTolerance | number |
Returns
boolean
Direction
▸ Direction(): MdGeDir
Returns
DistanceToLine
▸ DistanceToLine(theOther
): number
Parameters
Name | Type |
---|---|
theOther | MdGeLine |
Returns
number
DistanceToPoint
▸ DistanceToPoint(theP
): number
Parameters
Name | Type |
---|---|
theP | MdGePoint |
Returns
number
Edge
▸ Edge(p1?
, p2?
): MdGeEdge
Parameters
Name | Type |
---|---|
p1? | number |
p2? | number |
Returns
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
): MdGeLine
Parameters
Name | Type |
---|---|
theA1 | MdGeAxis |
Returns
MirroredByCSYSR
▸ MirroredByCSYSR(theA2
): MdGeLine
Parameters
Name | Type |
---|---|
theA2 | MdGeCSYSR |
Returns
MirroredByPoint
▸ MirroredByPoint(theP
): MdGeLine
Parameters
Name | Type |
---|---|
theP | MdGePoint |
Returns
Normal
▸ Normal(theP
): MdGeLine
Parameters
Name | Type |
---|---|
theP | MdGePoint |
Returns
Position
▸ Position(): MdGeAxis
Returns
Reverse
▸ Reverse(): void
Returns
void
Reversed
▸ Reversed(): MdGeLine
Returns
Rotate
▸ Rotate(theA1
, theAng
): void
Parameters
Name | Type |
---|---|
theA1 | MdGeAxis |
theAng | number |
Returns
void
Rotated
▸ Rotated(theA1
, theAng
): MdGeLine
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
): MdGeLine
Parameters
Name | Type |
---|---|
theP | MdGePoint |
theS | number |
Returns
SetDirection
▸ SetDirection(theV
): void
Parameters
Name | Type |
---|---|
theV | MdGeDir |
Returns
void
SetLocation
▸ SetLocation(theP
): void
Parameters
Name | Type |
---|---|
theP | MdGePoint |
Returns
void
SetPosition
▸ SetPosition(theA1
): void
Parameters
Name | Type |
---|---|
theA1 | MdGeAxis |
Returns
void
Shape
▸ Shape(): MdGeShape
Returns
SquareDistanceToLine
▸ SquareDistanceToLine(theOther
): number
Parameters
Name | Type |
---|---|
theOther | MdGeLine |
Returns
number
SquareDistanceToPoint
▸ SquareDistanceToPoint(theP
): number
Parameters
Name | Type |
---|---|
theP | MdGePoint |
Returns
number
Transform
▸ Transform(theT
): void
Parameters
Name | Type |
---|---|
theT | MdGeTrsf |
Returns
void
Transformed
▸ Transformed(theT
): MdGeLine
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
): MdGeLine
Parameters
Name | Type |
---|---|
theP1 | MdGePoint |
theP2 | MdGePoint |
Returns
TranslatedByVec
▸ TranslatedByVec(theV
): MdGeLine
Parameters
Name | Type |
---|---|
theV | MdGeVec |
Returns
Wire
▸ Wire(): MdGeWire
Returns
getImp
▸ getImp(): any
Returns
any
Inherited from
initTempObject
▸ Protected
initTempObject(imp
): void
Parameters
Name | Type |
---|---|
imp | any |
Returns
void