Defines a right-handed or left-handed axis placement in 3D.
new Axis3d(
location
,axis
,xReferenceDirection
?):Axis3d
Point
= ...
Location point of the axis.
Direction
= ...
Z direction of the axis placement.
Reference direction that used for computation of x and y directions.
readonly
location:Point
Location point of the axis.
get axis():
Direction
Returns z direction of axis.
get xDirection():
Direction
Returns x direction of axis.
get yDirection():
Direction
Returns y direction of axis.
clone():
Axis3d
Creates new Axis3d
axis with location and directions same as this
.
copy(
other
):this
Copies location and directions of the other
axis to this
.
Copied object.
this
isRightHanded():
boolean
Returns true
if axis is a right-handed axis placement, false
otherwise.
boolean
mirror(
point
):this
Mirrors this
axis relative to other point
.
Other point.
this
mirror(
axis
):this
Mirrors this
axis relative to axis
.
Axis.
this
mirror(
axis
):this
Mirrors this
axis relative to axis
.
Axis.
this
mirrored(
point
):Axis3d
Returns new Axis3d
object with coordinates received by performing a mirror() operation to this
object.
Point.
mirrored(
axis
):Axis3d
Returns new Axis3d
object with coordinates received by performing a mirror() operation to this
object.
Axis.
mirrored(
axis
):Axis3d
Returns new Axis3d
object with coordinates received by performing a mirror() operation to this
object.
Axis.
reverse():
this
Reverses coordinates of this
axis directions.
this
reversed():
Axis3d
Returns new Axis3d
object with directions received by performing a reverse() operation to this
object.
rotate(
axis
,angle
):this
Rotates this
axis around axis
on angle
.
Rotation axis.
number
Rotation angle.
this
rotated(
axis
,angle
):Axis3d
Returns new Axis3d
object with coordinates received by performing a rotate() operation to this
object.
Rotation axis.
number
Rotation angle.
scale(
point
,scale
):this
Scales this
location.
Other point.
number
Scale value.
this
scaled(
point
,scale
):Axis3d
Returns new Axis3d
object with location received by performing a scale() operation to this
object.
Other point.
number
Scale value.
transform(
transformation
):this
Transforms coordinates of this
axis according to transformation
.
Transformation.
this
transformed(
transformation
):Axis3d
Returns new Axis3d
object with coordinates received by performing a transform() operation to this
object.
Transformation.
translate(
vector
):this
Translates this
axis.
Translation vector.
this
translated(
vector
):Axis3d
Returns new Axis3d
object with coordinates received by performing a translate() operation to this
object.
Translation vector.