Skip to content
On this page

mxcad API 文档 / MdGeLine

Class: MdGeLine

表示一条直线

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MdGeLine(p1?, p2?)

Parameters

NameType
p1?object | MdGePoint
p2?MdGeDir

Overrides

Mx3dBaseObject.constructor

Properties

imp

Protected imp: any = 0

Inherited from

Mx3dBaseObject.imp

Methods

Angle

Angle(theOther): number

Parameters

NameType
theOtherMdGeLine

Returns

number


Contains

Contains(theP, theLinearTolerance): boolean

Parameters

NameType
thePMdGePoint
theLinearTolerancenumber

Returns

boolean


Direction

Direction(): MdGeDir

Returns

MdGeDir


DistanceToLine

DistanceToLine(theOther): number

Parameters

NameType
theOtherMdGeLine

Returns

number


DistanceToPoint

DistanceToPoint(theP): number

Parameters

NameType
thePMdGePoint

Returns

number


Edge

Edge(p1?, p2?): MdGeEdge

Parameters

NameType
p1?number
p2?number

Returns

MdGeEdge


Location

Location(): MdGePoint

Returns

MdGePoint


MirrorByAxis

MirrorByAxis(theA1): void

Parameters

NameType
theA1MdGeAxis

Returns

void


MirrorByCSYSR

MirrorByCSYSR(theA2): void

Parameters

NameType
theA2MdGeCSYSR

Returns

void


MirrorByPoint

MirrorByPoint(theP): void

Parameters

NameType
thePMdGePoint

Returns

void


MirroredByAxis

MirroredByAxis(theA1): MdGeLine

Parameters

NameType
theA1MdGeAxis

Returns

MdGeLine


MirroredByCSYSR

MirroredByCSYSR(theA2): MdGeLine

Parameters

NameType
theA2MdGeCSYSR

Returns

MdGeLine


MirroredByPoint

MirroredByPoint(theP): MdGeLine

Parameters

NameType
thePMdGePoint

Returns

MdGeLine


Normal

Normal(theP): MdGeLine

Parameters

NameType
thePMdGePoint

Returns

MdGeLine


Position

Position(): MdGeAxis

Returns

MdGeAxis


Reverse

Reverse(): void

Returns

void


Reversed

Reversed(): MdGeLine

Returns

MdGeLine


Rotate

Rotate(theA1, theAng): void

Parameters

NameType
theA1MdGeAxis
theAngnumber

Returns

void


Rotated

Rotated(theA1, theAng): MdGeLine

Parameters

NameType
theA1MdGeAxis
theAngnumber

Returns

MdGeLine


Scale

Scale(theP, theS): void

Parameters

NameType
thePMdGePoint
theSnumber

Returns

void


Scaled

Scaled(theP, theS): MdGeLine

Parameters

NameType
thePMdGePoint
theSnumber

Returns

MdGeLine


SetDirection

SetDirection(theV): void

Parameters

NameType
theVMdGeDir

Returns

void


SetLocation

SetLocation(theP): void

Parameters

NameType
thePMdGePoint

Returns

void


SetPosition

SetPosition(theA1): void

Parameters

NameType
theA1MdGeAxis

Returns

void


Shape

Shape(): MdGeShape

Returns

MdGeShape


SquareDistanceToLine

SquareDistanceToLine(theOther): number

Parameters

NameType
theOtherMdGeLine

Returns

number


SquareDistanceToPoint

SquareDistanceToPoint(theP): number

Parameters

NameType
thePMdGePoint

Returns

number


Transform

Transform(theT): void

Parameters

NameType
theTMdGeTrsf

Returns

void


Transformed

Transformed(theT): MdGeLine

Parameters

NameType
theTMdGeTrsf

Returns

MdGeLine


TranslateBy2Points

TranslateBy2Points(theP1, theP2): void

Parameters

NameType
theP1MdGePoint
theP2MdGePoint

Returns

void


TranslateByVec

TranslateByVec(theV): void

Parameters

NameType
theVMdGeVec

Returns

void


TranslatedBy2Points

TranslatedBy2Points(theP1, theP2): MdGeLine

Parameters

NameType
theP1MdGePoint
theP2MdGePoint

Returns

MdGeLine


TranslatedByVec

TranslatedByVec(theV): MdGeLine

Parameters

NameType
theVMdGeVec

Returns

MdGeLine


Wire

Wire(): MdGeWire

Returns

MdGeWire


getImp

getImp(): any

Returns

any

Inherited from

Mx3dBaseObject.getImp


initTempObject

Protected initTempObject(imp): void

Parameters

NameType
impany

Returns

void

Inherited from

Mx3dBaseObject.initTempObject