]> git.tdb.fi Git - libs/gl.git/blobdiff - source/camera.h
Use libmspmath to provide vector and matrix operations
[libs/gl.git] / source / camera.h
index cea9c35ef9d02ae2e91769eb6bba3d8e1159c8a6..d86725e6cb037bac933c1f2c4c2db3f84b31cdf9 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2010  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GL_CAMERA_H_
 #define MSP_GL_CAMERA_H_
 
@@ -45,8 +38,10 @@ public:
        const Vector3 &get_position() const { return position; }
        const Vector3 &get_look_direction() const { return look_dir; }
        const Vector3 &get_up_direction() const { return up_dir; }
+       const Matrix &get_matrix() const { return matrix; }
 
        Vector3 project(const Vector4 &) const;
+       Vector3 project(const Vector3 &) const;
        Vector4 unproject(const Vector4 &) const;
 
        void apply() const;