Skip to content
On this page

mxcad API 文档 / MdGeRect

Class: MdGeRect

表示一个矩形

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MdGeRect(p1?, p2?, p3?)

Parameters

NameType
p1?object | MdGeCSYSR
p2?number
p3?number

Overrides

Mx3dBaseObject.constructor

Properties

imp

Protected imp: any = 0

Inherited from

Mx3dBaseObject.imp

Methods

Area

Area(): number

Returns

number


BottomEdge

BottomEdge(): MdGeEdge

Returns

MdGeEdge


Face

Face(): MdGeFace

Returns

MdGeFace


LeftEdge

LeftEdge(): MdGeEdge

Returns

MdGeEdge


Position

Position(): MdGeCSYSR

Returns

MdGeCSYSR


RightEdge

RightEdge(): MdGeEdge

Returns

MdGeEdge


SetPosition

SetPosition(thePosition): void

Parameters

NameType
thePositionMdGeCSYSR

Returns

void


SetX

SetX(theX): void

Parameters

NameType
theXnumber

Returns

void


SetY

SetY(theY): void

Parameters

NameType
theYnumber

Returns

void


Shape

Shape(): MdGeShape

Returns

MdGeShape


TopEdge

TopEdge(): MdGeEdge

Returns

MdGeEdge


Wire

Wire(): MdGeWire

Returns

MdGeWire


X

X(): number

Returns

number


Y

Y(): number

Returns

number


getImp

getImp(): any

Returns

any

Inherited from

Mx3dBaseObject.getImp


initTempObject

Protected initTempObject(imp): void

Parameters

NameType
impany

Returns

void

Inherited from

Mx3dBaseObject.initTempObject