changed pointf to point<t> in ViewLineFromWindow
This commit is contained in:
parent
6a41a6ba9b
commit
b80cfc783d
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.12 2005/02/10 20:09:11 tarini
|
||||||
|
dispelled the mega-evil of GL_TRANSPOSE_*_MATRIX_ARB
|
||||||
|
|
||||||
Revision 1.11 2005/01/19 10:29:45 cignoni
|
Revision 1.11 2005/01/19 10:29:45 cignoni
|
||||||
Removed the inclusion of a glext.h
|
Removed the inclusion of a glext.h
|
||||||
|
|
||||||
|
@ -177,11 +180,9 @@ template <class T> Line3<T> View<T>::ViewLineFromModel(const Point3<T> &p)
|
||||||
// Note that p it is assumed to be in window coordinate.
|
// Note that p it is assumed to be in window coordinate.
|
||||||
template <class T> Line3<T> View<T>::ViewLineFromWindow(const Point3<T> &p)
|
template <class T> Line3<T> View<T>::ViewLineFromWindow(const Point3<T> &p)
|
||||||
{
|
{
|
||||||
Point3<T> vp=ViewPoint();
|
|
||||||
Line3<T> ln; // plane perpedicular to view direction and passing through manip center
|
Line3<T> ln; // plane perpedicular to view direction and passing through manip center
|
||||||
/*Matrix44<T> mi=model;
|
Point3<T> vp=ViewPoint();
|
||||||
Invert(mi);
|
Point3<T> pp=UnProject(p);
|
||||||
*/Point3f pp=UnProject(p);
|
|
||||||
ln.SetOrigin(vp);
|
ln.SetOrigin(vp);
|
||||||
ln.SetDirection(pp-vp);
|
ln.SetDirection(pp-vp);
|
||||||
return ln;
|
return ln;
|
||||||
|
|
Loading…
Reference in New Issue