Describes a transformation in 3D space.
A transformation consists of a rotation matrix, a translation vector, and a scale factor.
new Transformation(
rotation?,translation?,scaleFactor?):Transformation
Creates a transformation from rotation, translation, and scale components.
If all arguments are omitted, an identity transformation is created.
Rotation matrix of the transformation.
Translation vector of the transformation.
number
Scale factor.
Transformation
new Transformation(
axis):Transformation
Creates a transformation from an axis placement.
Axis placement defining the transformation.
Transformation
new Transformation(
source,target):Transformation
Creates a transformation from one axis placement to another.
Source axis placement.
Target axis placement.
Transformation
new Transformation(
vector,angle,translation?):Transformation
Creates a rotation transformation around vector by angle.
If translation is provided, it is assigned as the translation component.
Rotation vector.
number
Rotation angle.
Translation vector of the transformation.
Transformation
new Transformation(
axis,angle,translation?):Transformation
Creates a rotation transformation around axis by angle.
If translation is provided, it is assigned as the translation component.
Rotation axis.
number
Rotation angle.
Translation vector of the transformation.
Transformation
rotation:
Matrix3d
Rotation matrix of the transformation.
scaleFactor:
number=1
Scale factor of the transformation.
translation:
Vector
Translation vector of the transformation.
clone():
Transformation
Creates a new transformation with the same components as this transformation.
Transformation
copy(
other):this
Copies the components of other to this transformation.
Transformation
Transformation to copy.
this
invert():
this
Inverts this transformation.
this
inverted():
Transformation
Returns a new transformation resulting from inverting this transformation.
Transformation
isEqual(
other):boolean
Returns whether other is equal to this transformation.
Transformation
Other transformation.
boolean
isIdentity():
boolean
Returns whether this transformation is the identity transformation.
boolean
isNegative():
boolean
Returns whether the determinant of the rotation matrix is less than 0.
boolean
staticmirrorTransformation(point):Transformation
Returns a mirror transformation about point.
Mirror point.
Transformation
staticmirrorTransformation(axis):Transformation
Returns a mirror transformation about axis.
Mirror axis.
Transformation
staticmirrorTransformation(axis):Transformation
Returns a mirror transformation about axis.
Mirror axis.
Transformation
multiplied(
other):Transformation
Returns a new transformation resulting from multiplying this transformation by other.
Transformation
Other transformation.
Transformation
multiply(
other):this
Multiplies this transformation by other.
Transformation
Other transformation.
this
power(
num):this
Raises this transformation to the power num.
number
Power value.
this
powered(
num):Transformation
Returns a new transformation resulting from raising this transformation to the power num.
number
Power value.
Transformation
resetToIdentity():
this
Resets this transformation to the identity transformation.
this
staticrotateTransformation(vector,angle):Transformation
Returns a rotation transformation around vector by angle.
Rotation vector.
number
Rotation angle.
Transformation
staticrotateTransformation(axis,angle):Transformation
Returns a rotation transformation around axis by angle.
Rotation axis.
number
Rotation angle.
Transformation
staticscaleTransformation(point,scale):Transformation
Returns a scale transformation about point.
Reference point of the scaling transformation.
number
Scale factor.
Transformation
setRotation(
matrix):this
Sets the rotation matrix of the transformation.
Rotation matrix.
this
setRotation(
axis,angle):this
Sets the transformation as a rotation around axis by angle.
Rotation axis.
number
Rotation angle.
this
setRotation(
vector,angle):this
Sets the transformation as a rotation around vector by angle.
Rotation vector.
number
Rotation angle.
this
setScaleFactor(
scaleFactor):this
Sets the scale factor of the transformation.
number
Scale factor.
this
setTranslation(
vector):this
Sets the translation vector of the transformation.
Translation vector.
this
setTranslation(
point1,point2):this
Sets the translation vector of the transformation from point1 to point2.
Start point of the translation vector.
End point of the translation vector.
this
statictranslateTransformation(vector):Transformation
Returns a translation transformation by vector.
Translation vector.
Transformation