Skip to main content

Class: Plane

Constructors

constructor

new Plane(origin, xDirection?, normal?)

Parameters

NameTypeDefault value
originPointundefined
xDirectionnull | Pointnull
normalPointundefined

Defined in

geom.ts:344

Properties

_origin

Private _origin: Vector

Defined in

geom.ts:338


globalToLocal

Private globalToLocal: Transformation

Defined in

geom.ts:342


localToGlobal

Private localToGlobal: Transformation

Defined in

geom.ts:340


oc

oc: OpenCascadeInstance

Defined in

geom.ts:331


xDir

xDir: Vector

Defined in

geom.ts:333


yDir

yDir: Vector

Defined in

geom.ts:334


zDir

zDir: Vector

Defined in

geom.ts:335

Accessors

origin

get origin(): Vector

Returns

Vector

Defined in

geom.ts:388

set origin(newOrigin): void

Parameters

NameType
newOriginVector

Returns

void

Defined in

geom.ts:392

Methods

_calcTransforms

_calcTransforms(): void

Returns

void

Defined in

geom.ts:441


clone

clone(): Plane

Returns

Plane

Defined in

geom.ts:384


delete

delete(): void

Returns

void

Defined in

geom.ts:376


pivot

pivot(angle, direction?): Plane

Parameters

NameType
anglenumber
directionDirection

Returns

Plane

Defined in

geom.ts:427


rotate2DAxes

rotate2DAxes(angle): Plane

Parameters

NameType
anglenumber

Returns

Plane

Defined in

geom.ts:435


setOrigin2d

setOrigin2d(x, y): void

Parameters

NameType
xnumber
ynumber

Returns

void

Defined in

geom.ts:465


toLocalCoords

toLocalCoords(vec): Vector

Parameters

NameType
vecVector

Returns

Vector

Defined in

geom.ts:469


toWorldCoords

toWorldCoords(v): Vector

Parameters

NameType
vPoint

Returns

Vector

Defined in

geom.ts:476


translate

translate(xDist, yDist, zDist): Plane

Parameters

NameType
xDistnumber
yDistnumber
zDistnumber

Returns

Plane

Defined in

geom.ts:403

translate(vector): Plane

Parameters

NameType
vectorPoint

Returns

Plane

Defined in

geom.ts:404


translateTo

translateTo(point): Plane

Parameters

NameType
pointPoint

Returns

Plane

Defined in

geom.ts:397


translateX

translateX(xDist): Plane

Parameters

NameType
xDistnumber

Returns

Plane

Defined in

geom.ts:415


translateY

translateY(yDist): Plane

Parameters

NameType
yDistnumber

Returns

Plane

Defined in

geom.ts:419


translateZ

translateZ(zDist): Plane

Parameters

NameType
zDistnumber

Returns

Plane

Defined in

geom.ts:423