Added Shot::GetViewDir() method
This commit is contained in:
parent
4a26c71e63
commit
88107edef1
|
@ -164,6 +164,8 @@ public:
|
|||
/// GET the i-th axis of the coordinate system of the camera
|
||||
vcg::Point3<S> Axis(const int & i)const;
|
||||
|
||||
/// GET the viewdir
|
||||
const vcg::Point3<S> GetViewDir()const;
|
||||
/// GET the viewpoint
|
||||
const vcg::Point3<S> GetViewPoint()const;
|
||||
/// SET the viewpoint
|
||||
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue