48 bool delete_it =
false;
49 if (i->
isA(
"transformation")) {
60 vector<EGS_Float> tmp;
61 int err = input->
getInput(
"translation",tmp);
62 if (!err && tmp.size() == 3) {
66 err = input->
getInput(
"rotation vector",tmp);
67 if (!err && tmp.size() == 3)
71 err = input->
getInput(
"rotation",tmp);
77 else if (tmp.size() == 4) {
84 else if (tmp.size() == 9) {
87 tmp[6],tmp[7],tmp[8]);
89 egsWarning(
"getTransformation: the rotation specified by\n"
90 " %g %g %g\n %g %g %g\n %g %g %g\n"
91 " is not a rotation\n",tmp[0],tmp[1],tmp[2],
92 tmp[3],tmp[4],tmp[5],tmp[6],tmp[7],tmp[8]);
A class for vector rotations.
A class representing 3D vectors.
static EGS_RotationMatrix rotZ(EGS_Float cphi, EGS_Float sphi)
Returns a rotation around the z-axis by the angle with cphi, sphi = .
EGS_RotationMatrix inverse() const
Returns the inverse matrix.
bool isRotation() const
Is this object a real rotation matrix?
EGS_InfoFunction EGS_EXPORT egsWarning
Always use this function for reporting warnings.