Skip to main content

Class: Plane

Constructors

constructor

new Plane(origin, xDirection?, normal?)

Parameters

NameTypeDefault value
originPointundefined
xDirectionnull | Pointnull
normalPointundefined

Defined in

geom.ts:334

Properties

_origin

Private _origin: Vector

Defined in

geom.ts:328


globalToLocal

Private globalToLocal: Transformation

Defined in

geom.ts:332


localToGlobal

Private localToGlobal: Transformation

Defined in

geom.ts:330


oc

oc: OpenCascadeInstance

Defined in

geom.ts:321


xDir

xDir: Vector

Defined in

geom.ts:323


yDir

yDir: Vector

Defined in

geom.ts:324


zDir

zDir: Vector

Defined in

geom.ts:325

Accessors

origin

get origin(): Vector

Returns

Vector

Defined in

geom.ts:378

set origin(newOrigin): void

Parameters

NameType
newOriginVector

Returns

void

Defined in

geom.ts:382

Methods

_calcTransforms

_calcTransforms(): void

Returns

void

Defined in

geom.ts:423


clone

clone(): Plane

Returns

Plane

Defined in

geom.ts:374


delete

delete(): void

Returns

void

Defined in

geom.ts:366


pivot

pivot(angle, direction?): Plane

Parameters

NameType
anglenumber
directionDirection

Returns

Plane

Defined in

geom.ts:409


rotate2DAxes

rotate2DAxes(angle): Plane

Parameters

NameType
anglenumber

Returns

Plane

Defined in

geom.ts:417


setOrigin2d

setOrigin2d(x, y): void

Parameters

NameType
xnumber
ynumber

Returns

void

Defined in

geom.ts:447


toLocalCoords

toLocalCoords(vec): Vector

Parameters

NameType
vecVector

Returns

Vector

Defined in

geom.ts:451


toWorldCoords

toWorldCoords(v): Vector

Parameters

NameType
vPoint

Returns

Vector

Defined in

geom.ts:458


translate

translate(xDist, yDist?, zDist?): Plane

Parameters

NameTypeDefault value
xDistnumberundefined
yDistnumber0
zDistnumber0

Returns

Plane

Defined in

geom.ts:393


translateTo

translateTo(point): Plane

Parameters

NameType
pointPoint

Returns

Plane

Defined in

geom.ts:387


translateX

translateX(xDist): Plane

Parameters

NameType
xDistnumber

Returns

Plane

Defined in

geom.ts:397


translateY

translateY(yDist): Plane

Parameters

NameType
yDistnumber

Returns

Plane

Defined in

geom.ts:401


translateZ

translateZ(zDist): Plane

Parameters

NameType
zDistnumber

Returns

Plane

Defined in

geom.ts:405