From: frohlich Date: Thu, 27 Jul 2006 16:34:32 +0000 (+0000) Subject: Clean up scenery center handling. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=397ec62180c29b0008db396de5d7cc9775992dcc;p=simgear.git Clean up scenery center handling. --- diff --git a/simgear/scene/model/location.hxx b/simgear/scene/model/location.hxx index d691675f..78e30c53 100644 --- a/simgear/scene/model/location.hxx +++ b/simgear/scene/model/location.hxx @@ -83,6 +83,8 @@ public: //! Return the position relative to the given scenery center. virtual float * get_view_pos( const Point3D& scenery_center ); + float * get_view_pos( const SGVec3d& sc ) + { return get_view_pos(Point3D(sc[0], sc[1], sc[2])); } // Get world up vector virtual float *get_world_up() @@ -111,6 +113,9 @@ public: recalcAbsolutePosition(); return UP; } + const sgVec4 *getUpMatrix( const SGVec3d& sc ) + { return getUpMatrix(Point3D(sc[0], sc[1], sc[2])); } + virtual const sgVec4 *getCachedUpMatrix() { return UP; } private: