// revision : $Revision$ // revision_date : $Date$ // author(s) : Herve.Bronnimann@sophia.inria.fr #ifndef CGAL_CARTESIAN_TRIANGLE_D_H #define CGAL_CARTESIAN_TRIANGLE_D_H #include #include CGAL_BEGIN_NAMESPACE template class TriangleCd #ifndef CGAL_CFG_NO_ADVANCED_KERNEL // This is a partial specialization <_R,Cartesian_tag> #endif : public Handle { public: typedef _R R; typedef typename R::FT FT; typedef typename R::RT RT; #ifndef CGAL_CFG_NO_ADVANCED_KERNEL typedef TriangleCd Self; typedef typename R::Point_d Point_d; typedef typename R::Vector_d Vector_d; typedef typename R::Plane_d Plane_d; typedef typename R::Aff_transformation_d Aff_transformation_d; #else typedef TriangleCd Self; typedef typename R::Point_d_base Point_d; typedef typename R::Vector_d_base Vector_d; typedef typename R::Plane_d_base Plane_d; typedef typename R::Aff_transformation_d_base Aff_transformation_d; #endif TriangleCd(); TriangleCd(const Self &t); TriangleCd(const Point_d &p, const Point_d &q, const Point_d &r); ~TriangleCd(); Self &operator=(const Self &t); Point_d vertex(int i) const; Point_d operator[](int i) const; bool operator==(const Self &t) const; bool operator!=(const Self &t) const; long id() const; int dimension() const; // Bbox_d bbox() const; Self transform(const Aff_transformation_d &t) const; // Only makes sense for 3D Plane_d supporting_plane() const; // Makes sense for any dimension, but only implemented in 3D bool has_on(const Point_d &p) const; // End of 3D section bool is_degenerate() const; private: _Threetuple< Point_d >* ptr() const; }; CGAL_END_NAMESPACE #endif // CGAL_CARTESIAN_TRIANGLE_D_H