Added set and get methods for Matrixd and Matrixf.

This commit is contained in:
Robert Osfield
2003-09-05 20:52:36 +00:00
parent 5b93250eb0
commit a2834d74d2
2 changed files with 35 additions and 0 deletions

View File

@@ -20,6 +20,9 @@
namespace osg {
class Matrixf;
class Matrixd;
/** A quaternion class. It can be used to represent an orientation in 3D space.*/
class SG_EXPORT Quat
{
@@ -87,6 +90,15 @@ class SG_EXPORT Quat
{
_fv = v;
}
void set(const Matrixf& matrix);
void set(const Matrixd& matrix);
void get(Matrixf& matrix) const;
void get(Matrixd& matrix) const;
inline float& operator [] (int i) { return _fv[i]; }
inline float operator [] (int i) const { return _fv[i]; }