|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITransformation
Represents a transformation in 3-dimensional space.
The Robotics API always assumes the translation vector to be given in [mm].
Please refer to the documentation of Transformation for more information on transformations.
Transformation,
MatrixTransformation,
XyzAbcTransformation| Method Summary | |
|---|---|
Point3D |
applyTo(Point3D point)
Applies this transformation to the given point. |
Vector3D |
applyTo(Vector3D vector)
Applies this transformation to the given vector. |
ITransformation |
compose(ITransformation other)
If the transformations A and B are represented as homogeneous matrices, then the effect of A.compose(B) is that of the matrix multiplication A*B. |
double |
distanceTo(ITransformation other)
Calculates the euclidean distance of the origin of this transformation to the origin of the given transformation. |
IRotation |
getRotation()
Returns the rotation corresponding to this transformation. |
Vector3D |
getTranslation()
Returns the translation part of the transformation, i.e. the upper-right 3x1 part of the corresponding homogeneous transformation matrix. |
ITransformation |
invert()
Returns an inverted transformation, i.e. a transformation that reverses the effect of this one. |
double |
rotationalDistanceTo(ITransformation other)
Calculates the rotational distance from this transformation to the other transformation. |
ITransformation |
transformationTo(ITransformation other)
Calculates the transformation needed to move this transformation into the other transformation. |
| Method Detail |
|---|
Vector3D applyTo(Vector3D vector)
See class info of ITransformation or Vector3D for more information
vector - the vector to be transformed
Point3D applyTo(Point3D point)
point - the point to be transformed
ITransformation compose(ITransformation other)
other - the transformation to combine with this one
ITransformation invert()
IRotation getRotation()
Vector3D getTranslation()
ITransformation transformationTo(ITransformation other)
trafo1.compose(trafo1.rotationTo(trafo2)) is equal to trafo2
other - another transformation
double distanceTo(ITransformation other)
other - another transformation
double rotationalDistanceTo(ITransformation other)
Use this function to compare the orientations of two transformations.
other - another transformation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||