返回介绍

指南

MxCAD API 文档

MdGeLine

发布于 2024-07-31 21:39:59 字数 19454 浏览 0 评论 0 收藏 0

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

MdGeObject.constructor

Properties

imp

Protected imp: any = 0

Inherited from

MdGeObject.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

MdGeObject.getImp


initTempObject

Protected initTempObject(imp): void

Parameters

NameType
impany

Returns

void

Inherited from

MdGeObject.initTempObject

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文