Defines an axis placement as a combination of point and direction.
new Axis1d(
location
,direction
):Axis1d
Point
= ...
Location point of the axis.
Direction
= ...
Direction of the axis placement.
readonly
direction:Direction
Direction of the axis placement.
readonly
location:Point
Location point of the axis.
clone():
Axis1d
Creates new Axis1d
axis with location and direction same as this
.
copy(
other
):this
Copies location and direction of the other
axis to this
.
Copied object.
this
isCoaxial(
other
,isAllowOpposite
,angularTolerance
,distanceTolerance
):boolean
Returns true
if other
axis is coaxial to this
axis.
Other axis.
boolean
= false
Allow or not opposite axis to be coaxial.
number
= 1e-7
Angular tolerance.
number
= 1e-7
Distance tolerance.
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
):Axis1d
Returns new Axis1d
object with coordinates received by performing a mirror() operation to this
object.
Point.
mirrored(
axis
):Axis1d
Returns new Axis1d
object with coordinates received by performing a mirror() operation to this
object.
Axis.
mirrored(
axis
):Axis1d
Returns new Axis1d
object with coordinates received by performing a mirror() operation to this
object.
Axis.
reverse():
this
Reverses coordinates of this
axis direction.
this
reversed():
Axis1d
Returns new Axis1d
object with direction 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
):Axis1d
Returns new Axis1d
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
):Axis1d
Returns new Axis1d
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
):Axis1d
Returns new Axis1d
object with coordinates received by performing a Axis1::transform transform() operation to this
object.
Transformation.
translate(
vector
):this
Translates this
axis.
Translation vector.
this
translated(
vector
):Axis1d
Returns new Axis1d
object with coordinates received by performing a translate() operation to this
object.
Translation vector.
static
ox():Axis1d
Returns Axis1d
with location in Point::origin origin and direction as Direction::xDir xDir.
static
oy():Axis1d
Returns Axis1d
with location in Point::origin origin and direction as Direction::yDir yDir.
static
oz():Axis1d
Returns Axis1d
with location in Point::origin origin and direction as Direction::zDir zDir.