Describes object transformation in 3D space.
new Transformation(
rotation
?,translation
?,scaleFactor
?):Transformation
Rotation matrix of the transformation.
Translation vector of the transformation.
number
Scale factor.
new Transformation(
axis
):Transformation
Axis.
new Transformation(
source
,target
):Transformation
Source axis.
Target axis.
new Transformation(
vector
,angle
,translation
?):Transformation
Rotation vector.
number
Rotation angle.
Translation vector of the transformation.
new Transformation(
axis
,angle
,translation
?):Transformation
Rotation axis.
number
Rotation angle.
Translation vector of the transformation.
rotation:
Matrix3d
Rotation matrix of the transformation
scaleFactor:
number
=1
Scale factor
translation:
Vector
Translation vector of the transformation
clone():
Transformation
Creates new Transformation
object same as this
.
copy(
other
):this
Copies other
transformation to this
.
Copied object.
this
invert():
this
Inverts this
transformation.
this
inverted():
Transformation
Returns new Point
object received by performing a invert() operation to this
object.
isEqual(
other
):boolean
Returns true
if other transformation is equal to this transformation.
Other transformation.
boolean
isIdentity():
boolean
Returns true
if transformation is identity.
boolean
isNegative():
boolean
Returns true
if rotation matrix determinant less than 0
.
boolean
multiplied(
other
):Transformation
Returns new Transformation
object received by performing a multiply() operation to this
object.
Other transformation.
multiply(
other
):this
Multiplies this
transformation with other
.
Other transformation.
this
power(
num
):this
Powers this
transformation.
number
Power value.
this
powered(
num
):Transformation
Returns new Transformation
object received by performing a power() operation to this
object.
number
Power value.
resetToIdentity():
this
this
setRotation(
matrix
):this
Sets rotation matrix of transformation.
Rotation matrix.
this
setRotation(
axis
,angle
):this
Sets transformation as rotation around axis
on angle
.
Rotation axis.
number
Rotation angle.
this
setRotation(
vector
,angle
):this
Sets transformation as rotation around vector
on angle
.
Rotation vector.
number
Rotation angle.
this
setScaleFactor(
scaleFactor
):this
Sets scale factor of transformation.
number
Scale factor.
this
setTranslation(
vector
):this
Sets translation vector of transformation.
Translation vector.
this
setTranslation(
point1
,point2
):this
Sets translation vector of transformation.
First point of translation vector.
Second point of translation vector.
this
static
mirrorTransformation(point
):Transformation
Returns new Transformation
object that represent mirror transformation relative to the point
.
Mirror point.
static
mirrorTransformation(axis
):Transformation
Returns new Transformation
object that represent mirror transformation relative to the axis
.
Mirror axis.
static
mirrorTransformation(axis
):Transformation
Returns new Transformation
object that represent mirror transformation relative to the axis
.
Mirror axis.
static
rotateTransformation(vector
,angle
):Transformation
Returns new Transformation
object that represent rotate transformation.
Rotation vector.
number
Rotation angle.
static
rotateTransformation(axis
,angle
):Transformation
Returns new Transformation
object that represent rotate transformation.
Rotation axis.
number
Rotation angle.
static
scaleTransformation(point
,scale
):Transformation
Returns new Transformation
object that represent scale transformation.
Point.
number
Scale.
static
translateTransformation(vector
):Transformation
Returns new Transformation
object that represent translate transformation.
Translation vector.