51 #ifndef CGAL_POINT_3_H
52 #define CGAL_POINT_3_H
54 #ifndef CGAL_REP_CLASS_DEFINED
55 #error no representation class defined
56 #endif // CGAL_REP_CLASS_DEFINED
58 #ifdef CGAL_HOMOGENEOUS_H
59 #ifndef CGAL_POINTH3_H
60 #include <CGAL/PointH3.h>
61 #endif // CGAL_POINTH3_H
62 #endif // CGAL_HOMOGENEOUS_H
64 #ifdef CGAL_CARTESIAN_H
65 #ifndef CGAL_POINTC3_H
66 #include <CGAL/Cartesian/Point_3.h>
67 #endif // CGAL_POINTC3_H
68 #endif // CGAL_CARTESIAN_H
70 #ifdef CGAL_SIMPLE_CARTESIAN_H
71 #include <CGAL/SimpleCartesian/PointS3.h>
72 #endif // CGAL_SIMPLE_CARTESIAN_H
80 class Point_3 :
public R_::Point_3_base
84 typedef typename R::RT
RT;
85 typedef typename R::FT
FT;
92 (
const CGAL::Vector_3<R>&
v);
114 {
return !(*
this == p); }
118 {
return RPoint_3::hx(); }
121 {
return RPoint_3::hy(); }
124 {
return RPoint_3::hz(); }
127 {
return RPoint_3::hw(); }
139 {
return RPoint_3::homogeneous(i); }
142 {
return RPoint_3::cartesian(i); }
151 {
return RPoint_3::bbox(); }
153 CGAL::Point_3<R>
transform(
const CGAL::Aff_transformation_3<R>& t)
const
154 {
return RPoint_3::transform(t); }
164 #ifndef CGAL_VECTOR_3_H
166 #endif // CGAL_VECTOR_3_H
170 #ifndef CGAL_AFF_TRANSFORMATION_3_H
172 #endif // CGAL_AFF_TRANSFORMATION_3_H
189 #ifndef NO_OSTREAM_INSERT_POINT_3
193 operator<<(std::ostream& os, const Point_3<R>& p)
195 typedef typename R::Point_3_base RPoint_3;
196 return os << (
const RPoint_3& )p;
198 #endif // NO_OSTREAM_INSERT_POINT_3
200 #ifndef NO_ISTREAM_EXTRACT_POINT_3
204 typedef typename R::Point_3_base RPoint_3;
205 return is >> (RPoint_3& )p;
207 #endif // NO_ISTREAM_EXTRACT_POINT_3
212 #endif // CGAL_POINT_3_H
CGAL::Point_3< R > transform(const CGAL::Aff_transformation_3< R > &t) const
CGAL_END_NAMESPACE CGAL_BEGIN_NAMESPACE bool operator==(const Origin &o, const Point_2< R > &p)
friend CGAL_FRIEND_INLINE CGAL::Point_3< R > vector_to_point_conversion CGAL_NULL_TMPL_ARGS(const CGAL::Vector_3< R > &v)
RT homogeneous(int i) const
R::Vector_3_base RVector_3
void int int REAL REAL * y
Point_3(const RVector_3 &v)
Point_3(const RT &hx, const RT &hy, const RT &hz, const RT &hw)
Point_3(const RPoint_3 &p)
Point_2< R > vector_to_point_conversion(const Vector_2< R > &v)
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed free of to any person **obtaining a copy of this software and associated documentation to deal with the Software without including without limitation the rights to and or **sell copies of the and to permit persons to whom the **Software is furnished to do subject to the following this list of conditions and the following disclaimers ****Redistributions in binary form must reproduce the above **copyright this list of conditions and the following **disclaimers in the documentation and or other materials **provided with the distribution ****Neither the names of the Center for Simulation of Advanced the University of nor the names of its **contributors may be used to endorse or promote products derived **from this Software without specific prior written permission ****THE SOFTWARE IS PROVIDED AS WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE v
bool operator==(const CGAL::Point_3< R > &p) const
void int int int REAL REAL REAL * z
FT operator[](int i) const
FT cartesian(int i) const
bool operator!=(const Origin &o, const Point_2< R > &p)
R::Vector_3_base RVector_3
bool operator!=(const CGAL::Point_3< R > &p) const
Point_3(const RT &hx, const RT &hy, const RT &hz)
#define CGAL_BEGIN_NAMESPACE
Point_3(const CGAL::Point_3< R > &p)
#define CGAL_END_NAMESPACE
#define CGAL_FRIEND_INLINE