51 #ifndef CGAL_POINT_2_H
52 #define CGAL_POINT_2_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 #include <CGAL/PointH2.h>
60 #endif // CGAL_HOMOGENEOUS_H
62 #ifdef CGAL_CARTESIAN_H
63 #include <CGAL/Cartesian/Point_2.h>
64 #endif // CGAL_CARTESIAN_H
66 #ifdef CGAL_SIMPLE_CARTESIAN_H
67 #include <CGAL/SimpleCartesian/PointS2.h>
68 #endif // CGAL_SIMPLE_CARTESIAN_H
76 class Point_2 :
public R_::Point_2_base
80 typedef typename R::RT
RT;
81 typedef typename R::FT
FT;
89 (
const CGAL::Vector_2<R>&
v);
122 return !(*
this == p);
127 return RPoint_2::hx();
132 return RPoint_2::hy();
137 return RPoint_2::hw();
151 return RPoint_2::homogeneous(i);
156 return RPoint_2::cartesian(i);
171 return RPoint_2::bbox();
174 CGAL::Point_2<R>
transform(
const CGAL::Aff_transformation_2<R>& t)
const
176 return RPoint_2::transform(t);
186 #ifndef NO_OSTREAM_INSERT_POINT_2
189 operator<<(std::ostream& os, const Point_2<R>& p)
191 typedef typename R::Point_2_base RPoint_2;
192 return os << (
const RPoint_2&)p;
194 #endif // NO_OSTREAM_INSERT_POINT_2
196 #ifndef NO_ISTREAM_EXTRACT_POINT_2
201 typedef typename R::Point_2_base RPoint_2;
202 return is >> (RPoint_2&)p;
204 #endif // NO_ISTREAM_EXTRACT_POINT_2
224 #ifndef CGAL_VECTOR_2_H
226 #endif // CGAL_VECTOR_2_H
230 #ifndef CGAL_AFF_TRANSFORMATION_2_H
232 #endif // CGAL_AFF_TRANSFORMATION_2_H
251 #endif // CGAL_POINT_2_H
FT cartesian(int i) const
CGAL_END_NAMESPACE CGAL_BEGIN_NAMESPACE bool operator==(const Origin &o, const Point_2< R > &p)
Point_2(const RT &hx, const RT &hy, const RT &hw)
void int int REAL REAL * y
FT operator[](int i) const
Iterator_from_circulator< C, Ref, Ptr > operator+(Dist n, const Iterator_from_circulator< C, Ref, Ptr > &circ)
R::Vector_2_base RVector_2
Point_2< R > vector_to_point_conversion(const Vector_2< R > &v)
Point_2(const RVector_2 &v)
friend CGAL_FRIEND_INLINE CGAL::Point_2< R > CGAL_SCOPE vector_to_point_conversion CGAL_NULL_TMPL_ARGS(const CGAL::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
R::Vector_2_base RVector_2
bool operator!=(const CGAL::Point_2< R > &p) const
Point_2(const RT &hx, const RT &hy)
RT homogeneous(int i) const
Point_2(const CGAL::Point_2< R > &p)
CGAL::Point_2< R > transform(const CGAL::Aff_transformation_2< R > &t) const
bool operator!=(const Origin &o, const Point_2< R > &p)
#define CGAL_BEGIN_NAMESPACE
Point_2(const RPoint_2 &p)
bool operator==(const CGAL::Point_2< R > &p) const
#define CGAL_END_NAMESPACE
Point_2< R > operator-(const Origin &o, const Vector_2< R > &v)
#define CGAL_FRIEND_INLINE