diff --git a/vcg/space/point3.h b/vcg/space/point3.h index 7626bf9a..fd1126a6 100644 --- a/vcg/space/point3.h +++ b/vcg/space/point3.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.22 2005/09/14 14:09:21 m_di_benedetto +Added specialized Convert() for the same scalar type. + Revision 1.21 2005/05/06 14:45:33 spinelli cambiato parentesi nel costruttore di GetUV per rendere compatibile tale costruttore con MVC e borland @@ -498,6 +501,16 @@ void GetUV( Point3 &n,Point3 &u, Point3 +inline Point3 Abs(const Point3 & p) { + return (Point3(math::Abs(p[0]), math::Abs(p[1]), math::Abs(p[2]))); +} +// probably a more uniform naming should be defined... +template +inline Point3 LowClampToZero(const Point3 & p) { + return (Point3(math::Max(p[0], (SCALARTYPE)0), math::Max(p[1], (SCALARTYPE)0), math::Max(p[2], (SCALARTYPE)0))); +} + typedef Point3 Point3s; typedef Point3 Point3i; typedef Point3 Point3f;