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