Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

set_point.h

00001 #ifndef SET_POINT_H
00002 #define SET_POINT_H
00003 
00004 #include <CGAL/Point_3.h>
00005 
00006 
00014 #ifdef CGAL_HOMOGENEOUS_H
00015 
00016 class CGAL::Gmpz;
00017 
00018 void 
00019 set_point( CGAL::Point_3< CGAL::Homogeneous<CGAL::Gmpz> >& p,
00020            double x, double y, double z );
00021 
00022 template <class R_>
00023 inline
00024 void set_point( CGAL::Point_3< CGAL::Homogeneous<CGAL::Gmpz> >& p,
00025                 const CGAL::Point_3<R_>& q )
00026 {
00027     set_point( p, 
00028                CGAL::to_double(q.x()), 
00029                CGAL::to_double(q.y()), 
00030                CGAL::to_double(q.z()) );
00031 }
00032 
00033 #endif // CGAL_HOMOGENEOUS_H
00034 
00035 
00036 
00037 #ifdef CGAL_CARTESIAN_H
00038 
00039 template <class NT_>
00040 inline void
00041 set_point( CGAL::Point_3< CGAL::Cartesian<NT_> >& p,
00042            double x, double y, double z )
00043 {
00044     p = CGAL::Point_3< CGAL::Cartesian<NT_> >(x,y,z);
00045 }
00046 
00047 
00048 template <class NT_, class R_>
00049 inline void
00050 set_point( CGAL::Point_3< CGAL::Cartesian<NT_> >& p,
00051            const CGAL::Point_3<R_>& q )
00052 {
00053     set_point( p, 
00054                CGAL::to_double(q.x()), 
00055                CGAL::to_double(q.y()), 
00056                CGAL::to_double(q.z()) );
00057 }
00058 
00059 #endif // CGAL_CARTESIAN_H
00060 
00061 
00062 
00063 #ifdef CGAL_SIMPLE_CARTESIAN_H
00064 
00065 template <class NT_>
00066 inline void
00067 set_point( CGAL::Point_3< CGAL::Simple_cartesian<NT_> >& p,
00068            double x, double y, double z )
00069 {
00070     p = CGAL::Point_3< CGAL::Simple_cartesian<NT_> >(x,y,z);
00071 }
00072 
00073 
00074 template <class NT_, class R_>
00075 inline void
00076 set_point( CGAL::Point_3< CGAL::Simple_cartesian<NT_> >& p,
00077            const CGAL::Point_3<R_>& q )
00078 {
00079     set_point( p, 
00080                CGAL::to_double(q.x()), 
00081                CGAL::to_double(q.y()), 
00082                CGAL::to_double(q.z()) );
00083 }
00084 
00085 #endif // CGAL_SIMPLE_CARTESIAN_H
00086 
00087 #endif

Generated on Fri Oct 26 23:38:12 2001 for bicobj-intersection by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001