42 GGcout(
"GGEMSGeometryTransformation",
"GGEMSGeometryTransformation", 3) <<
"GGEMSGeometryTransformation creating..." <<
GGendl;
45 position_.x = std::numeric_limits<float>::min();
46 position_.y = std::numeric_limits<float>::min();
47 position_.z = std::numeric_limits<float>::min();
50 rotation_.x = std::numeric_limits<float>::min();
51 rotation_.y = std::numeric_limits<float>::min();
52 rotation_.z = std::numeric_limits<float>::min();
65 {1.0f, 0.0f, 0.0f, 0.0f},
66 {0.0f, 1.0f, 0.0f, 0.0f},
67 {0.0f, 0.0f, 1.0f, 0.0f},
68 {0.0f, 0.0f, 0.0f, 1.0f}
74 {1.0f, 0.0f, 0.0f, 0.0f},
75 {0.0f, 1.0f, 0.0f, 0.0f},
76 {0.0f, 0.0f, 1.0f, 0.0f},
77 {0.0f, 0.0f, 0.0f, 1.0f}
83 {1.0f, 0.0f, 0.0f, 0.0f},
84 {0.0f, 1.0f, 0.0f, 0.0f},
85 {0.0f, 0.0f, 1.0f, 0.0f},
86 {0.0f, 0.0f, 0.0f, 1.0f}
104 for (
GGint j = 0; j < 4; ++j) {
115 GGcout(
"GGEMSGeometryTransformation",
"GGEMSGeometryTransformation", 3) <<
"GGEMSGeometryTransformation created!!!" <<
GGendl;
124 GGcout(
"GGEMSGeometryTransformation",
"~GGEMSGeometryTransformation", 3) <<
"GGEMSGeometryTransformation erasing..." <<
GGendl;
136 GGcout(
"GGEMSGeometryTransformation",
"~GGEMSGeometryTransformation", 3) <<
"GGEMSGeometryTransformation erased!!!" <<
GGendl;
156 {0.0f, 0.0f, 0.0f, 1.0f}
171 for (
GGint j = 0; j < 4; ++j) {
172 matrix_transformation_device->
m0_[j] = matrix_tmp.
m0_[j];
173 matrix_transformation_device->
m1_[j] = matrix_tmp.
m1_[j];
174 matrix_transformation_device->
m2_[j] = matrix_tmp.
m2_[j];
175 matrix_transformation_device->
m3_[j] = matrix_tmp.
m3_[j];
204 GGfloat cosinus = 0.0, sinus = 0.0;
207 cosinus = std::cos(rx);
208 sinus = std::sin(rx);
212 {1.0f, 0.0f, 0.0f, 0.0f},
213 {0.0f, cosinus, -sinus, 0.0f},
214 {0.0f, sinus, cosinus, 0.0f},
215 {0.0f, 0.0f, 0.0f, 1.0f}
219 cosinus = std::cos(ry);
220 sinus = std::sin(ry);
224 {cosinus, 0.0f, sinus, 0.0f},
225 {0.0f, 1.0f, 0.0f, 0.0f},
226 {-sinus, 0.0f, cosinus, 0.0f},
227 {0.0f, 0.0f, 0.0f, 1.0f}
231 cosinus = std::cos(rz);
232 sinus = std::sin(rz);
236 {cosinus, -sinus, 0.0f, 0.0f},
237 {sinus, cosinus, 0.0f, 0.0f},
238 {0.0f, 0.0f, 1.0f, 0.0f},
239 {0.0f, 0.0f, 0.0f, 1.0f}
259 for (
GGint j = 0; j < 4; ++j) {
260 matrix_transformation_device->m0_[j] = matrix_tmp.
m0_[j];
261 matrix_transformation_device->m1_[j] = matrix_tmp.
m1_[j];
262 matrix_transformation_device->m2_[j] = matrix_tmp.
m2_[j];
263 matrix_transformation_device->m3_[j] = matrix_tmp.
m3_[j];
288 {m0.s0, m0.s1, m0.s2},
289 {m1.s0, m1.s1, m1.s1},
311 {axis.
m0_[0], axis.
m0_[1], axis.
m0_[2], 0.0f},
312 {axis.
m1_[0], axis.
m1_[1], axis.
m1_[2], 0.0f},
313 {axis.
m2_[0], axis.
m2_[1], axis.
m2_[2], 0.0f},
314 {0.0f, 0.0f, 0.0f, 1.0f}
326 for (
GGint j = 0; j < 4; ++j) {