52 #ifndef CGAL_POINTS2_H
53 #define CGAL_POINTS2_H
95 #include <CGAL/SimpleCartesian/VectorS2.h>
97 #include <CGAL/Bbox_2.h>
102 template <
class FT >
105 { e0 = v.
e0; e1 = v.
e1; }
107 template <
class FT >
112 { e0 = hx/hw; e1 = hy/hw; }
114 { e0 = hx; e1 = hy; }
117 template <
class FT >
122 template <
class FT >
126 {
return ((
x() == p.
x()) && (
y() == p.
y())) ; }
128 template <
class FT >
132 {
return !(*
this == p); }
134 template <
class FT >
140 template <
class FT >
146 template <
class FT >
152 return (i == 0) ?
x() :
y();
155 template <
class FT >
159 {
return cartesian(i); }
161 template <
class FT >
167 template <
class FT >
173 template <
class FT >
179 template <
class FT >
185 template <
class FT >
191 if (i<2)
return cartesian(i);
195 template <
class FT >
201 template <
class FT >
207 template <
class FT >
213 template <
class FT >
218 template <
class FT >
224 template <
class FT >
230 template <
class FT >
236 template <
class FT >
242 template <
class FT >
249 return Bbox_2(bx,by, bx,by);
252 #ifndef CGAL_NO_OSTREAM_INSERT_POINTS2
253 template <
class FT >
255 operator<<(std::ostream& os, const PointS2<FT>& p)
260 return os << p.x() <<
' ' << p.y();
266 return os <<
"PointS2(" << p.x() <<
", " << p.y() <<
')';
269 #endif // CGAL_NO_OSTREAM_INSERT_POINTS2
271 #ifndef CGAL_NO_ISTREAM_EXTRACT_POINTS2
272 template <
class FT >
293 #endif // CGAL_NO_ISTREAM_EXTRACT_POINTS2
297 #endif // CGAL_POINTS2_H
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed by
FT cartesian(int i) const
#define CGAL_KERNEL_CTOR_INLINE
CGAL_BEGIN_NAMESPACE double to_double(double d)
void int int REAL REAL * y
#define CGAL_KERNEL_INLINE
#define CGAL_kernel_assertion_msg(EX, MSG)
bool operator!=(const PointS2< FT > &p) const
Iterator_from_circulator< C, Ref, Ptr > operator+(Dist n, const Iterator_from_circulator< C, Ref, Ptr > &circ)
bool operator==(const PointS2< FT > &p) const
*********************************************************************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
void write(std::ostream &os, const T &t, const io_Read_write &)
FT operator[](int i) const
FT homogeneous(int i) const
void read(std::istream &is, T &t, const io_Read_write &)
#define CGAL_BEGIN_NAMESPACE
PointS2< FT > transform(const Aff_transformationS2< FT > &) const
#define CGAL_kernel_precondition(EX)
#define CGAL_END_NAMESPACE
Point_2< R > operator-(const Origin &o, const Vector_2< R > &v)