Added **explicit** constructor from three coords of a different scalartype

This commit is contained in:
Paolo Cignoni 2006-10-13 12:59:24 +00:00
parent 7e30be53fa
commit 00a0aeb381
1 changed files with 9 additions and 0 deletions

View File

@ -24,6 +24,9 @@
History History
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.24 2006/09/28 13:37:35 m_di_benedetto
added non const * V()
Revision 1.23 2005/11/09 16:11:55 cignoni Revision 1.23 2005/11/09 16:11:55 cignoni
Added Abs and LowClampToZero Added Abs and LowClampToZero
@ -168,6 +171,12 @@ public:
return Point3(P3ScalarType(b[0]),P3ScalarType(b[1]),P3ScalarType(b[2])); return Point3(P3ScalarType(b[0]),P3ScalarType(b[1]),P3ScalarType(b[2]));
} }
template <class Q>
static inline Point3 Construct( const Q & P0, const Q & P1, const Q & P2)
{
return Point3(P3ScalarType(P0),P3ScalarType(P1),P3ScalarType(P2));
}
static inline Point3 Construct( const Point3<ScalarType> & b ) static inline Point3 Construct( const Point3<ScalarType> & b )
{ {
return b; return b;