Hide menu
Loading...
Searching...
No Matches
Axis3d

Defines a right-handed or left-handed axis placement in 3D.

Constructors

new Axis3d()

new Axis3d(location, axis, xReferenceDirection?): Axis3d

Parameters

location

Point = ...

Location point of the axis.

axis

Direction = ...

Z direction of the axis placement.

xReferenceDirection?

Direction

Reference direction that used for computation of x and y directions.

Returns

Axis3d

Properties

location

readonly location: Point

Location point of the axis.

Accessors

axis

Get Signature

get axis(): Direction

Returns z direction of axis.

Returns

Direction


xDirection

Get Signature

get xDirection(): Direction

Returns x direction of axis.

Returns

Direction


yDirection

Get Signature

get yDirection(): Direction

Returns y direction of axis.

Returns

Direction

Methods

clone()

clone(): Axis3d

Creates new Axis3d axis with location and directions same as this.

Returns

Axis3d


copy()

copy(other): this

Copies location and directions of the other axis to this.

Parameters

other

Axis3d

Copied object.

Returns

this


isRightHanded()

isRightHanded(): boolean

Returns true if axis is a right-handed axis placement, false otherwise.

Returns

boolean


mirror()

Call Signature

mirror(point): this

Mirrors this axis relative to other point.

Parameters

point

Point

Other point.

Returns

this

Call Signature

mirror(axis): this

Mirrors this axis relative to axis.

Parameters

axis

Axis1d

Axis.

Returns

this

Call Signature

mirror(axis): this

Mirrors this axis relative to axis.

Parameters

axis

Axis3d

Axis.

Returns

this


mirrored()

Call Signature

mirrored(point): Axis3d

Returns new Axis3d object with coordinates received by performing a mirror() operation to this object.

Parameters

point

Point

Point.

Returns

Axis3d

Call Signature

mirrored(axis): Axis3d

Returns new Axis3d object with coordinates received by performing a mirror() operation to this object.

Parameters

axis

Axis1d

Axis.

Returns

Axis3d

Call Signature

mirrored(axis): Axis3d

Returns new Axis3d object with coordinates received by performing a mirror() operation to this object.

Parameters

axis

Axis3d

Axis.

Returns

Axis3d


reverse()

reverse(): this

Reverses coordinates of this axis directions.

Returns

this


reversed()

reversed(): Axis3d

Returns new Axis3d object with directions received by performing a reverse() operation to this object.

Returns

Axis3d


rotate()

rotate(axis, angle): this

Rotates this axis around axis on angle.

Parameters

axis

Axis1d

Rotation axis.

angle

number

Rotation angle.

Returns

this


rotated()

rotated(axis, angle): Axis3d

Returns new Axis3d object with coordinates received by performing a rotate() operation to this object.

Parameters

axis

Axis1d

Rotation axis.

angle

number

Rotation angle.

Returns

Axis3d


scale()

scale(point, scale): this

Scales this location.

Parameters

point

Point

Other point.

scale

number

Scale value.

Returns

this


scaled()

scaled(point, scale): Axis3d

Returns new Axis3d object with location received by performing a scale() operation to this object.

Parameters

point

Point

Other point.

scale

number

Scale value.

Returns

Axis3d


transform()

transform(transformation): this

Transforms coordinates of this axis according to transformation.

Parameters

transformation

Transformation

Transformation.

Returns

this


transformed()

transformed(transformation): Axis3d

Returns new Axis3d object with coordinates received by performing a transform() operation to this object.

Parameters

transformation

Transformation

Transformation.

Returns

Axis3d


translate()

translate(vector): this

Translates this axis.

Parameters

vector

Vector

Translation vector.

Returns

this


translated()

translated(vector): Axis3d

Returns new Axis3d object with coordinates received by performing a translate() operation to this object.

Parameters

vector

Vector

Translation vector.

Returns

Axis3d