@@ -21,7 +21,7 @@ struct CameraSensorSpec : public VisualSensorSpec {
2121 CameraSensorSpec ();
2222 void sanityCheck () const override ;
2323 bool operator ==(const CameraSensorSpec& a) const ;
24- Magnum ::Matrix4 projectionMatrix () const ;
24+ Mn ::Matrix4 projectionMatrix () const ;
2525 ESP_SMART_POINTERS (CameraSensorSpec)
2626};
2727
@@ -50,8 +50,7 @@ class CameraSensor : public VisualSensor {
5050 * perspective projection model.
5151 * See @ref gfx::calculateDepthUnprojection
5252 */
53- Corrade::Containers::Optional<Magnum::Vector2> depthUnprojection ()
54- const override ;
53+ Cr::Containers::Optional<Mn::Vector2> depthUnprojection () const override ;
5554
5655 /* *
5756 * @brief Draw an observation to the frame buffer using simulator's renderer
@@ -66,8 +65,7 @@ class CameraSensor : public VisualSensor {
6665 * @param factor Modification amount.
6766 */
6867 void modifyZoom (float factor) {
69- zoomMatrix_ =
70- Magnum::Matrix4::scaling ({factor, factor, 1 .0f }) * zoomMatrix_;
68+ zoomMatrix_ = Mn::Matrix4::scaling ({factor, factor, 1 .0f }) * zoomMatrix_;
7169 recomputeProjectionMatrix ();
7270 }
7371
@@ -76,7 +74,7 @@ class CameraSensor : public VisualSensor {
7674 * values.
7775 */
7876 void resetZoom () {
79- zoomMatrix_ = Magnum ::Matrix4 (Magnum ::Math::IdentityInit);
77+ zoomMatrix_ = Mn ::Matrix4 (Mn ::Math::IdentityInit);
8078 recomputeProjectionMatrix ();
8179 }
8280
@@ -197,17 +195,17 @@ class CameraSensor : public VisualSensor {
197195 * @brief This camera's projection matrix. Should be recomputed every time
198196 * size changes.
199197 */
200- Magnum ::Matrix4 projectionMatrix_;
198+ Mn ::Matrix4 projectionMatrix_;
201199
202200 /* *
203201 * @brief A base projection matrix based on camera's type and display size.
204202 */
205- Magnum ::Matrix4 baseProjMatrix_;
203+ Mn ::Matrix4 baseProjMatrix_;
206204
207205 /* *
208206 * @brief A matrix to determine the zoom for the projection.
209207 */
210- Magnum ::Matrix4 zoomMatrix_;
208+ Mn ::Matrix4 zoomMatrix_;
211209
212210 /* * @brief size of near plane
213211 */
0 commit comments