From 00a0aeb381bf51cecb6f31b694d4f31029eeb184 Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 13 Oct 2006 12:59:24 +0000 Subject: [PATCH] Added **explicit** constructor from three coords of a different scalartype --- vcg/space/point3.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vcg/space/point3.h b/vcg/space/point3.h index f0e93dbd..2934c194 100644 --- a/vcg/space/point3.h +++ b/vcg/space/point3.h @@ -24,6 +24,9 @@ History $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 Added Abs and LowClampToZero @@ -168,6 +171,12 @@ public: return Point3(P3ScalarType(b[0]),P3ScalarType(b[1]),P3ScalarType(b[2])); } + template + 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 & b ) { return b;