Hide menu
Loading...
Searching...
No Matches
Axis2d

Defines an axis placement by a location point, an X-direction and a flag whether the placement is right-handed or left-handed.

Constructors

new Axis2d()

new Axis2d(location, xDirection, isCCWRotation): Axis2d

Parameters

location

Point2d = ...

Location point of the axis.

xDirection

Direction2d = ...

X direction of the axis.

isCCWRotation

boolean = true

Y direction defined by counter-clockwise or clockwise rotation.

Returns

Axis2d

Properties

location

location: Point2d

Location point of the axis.

Accessors

xDirection

Get Signature

get xDirection(): Direction2d

Returns x direction of axis placement.

Returns

Direction2d

Set Signature

set xDirection(direction): void

Sets x and y direction of axis placement.

Parameters

direction

Direction2d

X direction of axis placement.

Returns

void


yDirection

Get Signature

get yDirection(): Direction2d

Returns y direction of axis placement.

Returns

Direction2d

Set Signature

set yDirection(direction): void

Sets x and y direction of axis placement.

Parameters

direction

Direction2d

Y direction of axis placement.

Returns

void

Methods

clone()

clone(): Axis2d

Creates new Axis2d axis same as this.

Returns

Axis2d


copy()

copy(other): this

Copies location and directions of the other axis to this.

Parameters

other

Axis2d

Copied object.

Returns

this


setLocation()

setLocation(location): this

Sets location of axis placement.

Parameters

location

Point2d

Location of axis placement.

Returns

this


setXDirection()

setXDirection(direction): this

Sets x and y direction of axis placement.

Parameters

direction

Direction2d

X direction of axis placement.

Returns

this


setYDirection()

setYDirection(direction): this

Sets x and y direction of axis placement.

Parameters

direction

Direction2d

Y direction of axis placement.

Returns

this