Added Shot::GetViewDir() method

This commit is contained in:
Paolo Cignoni 2011-02-17 09:58:16 +00:00
parent 4a26c71e63
commit 88107edef1
1 changed files with 13 additions and 3 deletions

View File

@ -164,9 +164,11 @@ public:
/// GET the i-th axis of the coordinate system of the camera
vcg::Point3<S> Axis(const int & i)const;
/// GET the viewpoint
const vcg::Point3<S> GetViewPoint()const;
/// SET the viewpoint
/// GET the viewdir
const vcg::Point3<S> GetViewDir()const;
/// GET the viewpoint
const vcg::Point3<S> GetViewPoint()const;
/// SET the viewpoint
void SetViewPoint(const vcg::Point3<S> & viewpoint);
/// GET fov from focal
@ -252,6 +254,14 @@ public:
template <class S, class RotationType>
const vcg::Point3<S> Shot<S,RotationType>::GetViewDir() const
{
return Extrinsics.Rot().GetRow3(2);
}
//---
/// GET the viewpoint
template <class S, class RotationType>