51 #ifndef CGAL_DIRECTION_2_H
52 #define CGAL_DIRECTION_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 #ifndef CGAL_DIRECTIONH2_H
60 #include <CGAL/DirectionH2.h>
61 #endif // CGAL_DIRECTIONH2_H
62 #endif // CGAL_HOMOGENEOUS_H
64 #ifdef CGAL_CARTESIAN_H
65 #ifndef CGAL_DIRECTIONC2_H
66 #include <CGAL/Cartesian/Direction_2.h>
67 #endif // CGAL_DIRECTIONC2_H
68 #endif // CGAL_CARTESIAN_H
70 #ifdef CGAL_SIMPLE_CARTESIAN_H
72 #endif // CGAL_SIMPLE_CARTESIAN_H
75 #ifndef CGAL_VECTOR_2_H
77 #endif // CGAL_VECTOR_2_H
86 typedef typename R::RT
RT;
87 typedef typename R::FT
FT;
119 {
return !(*
this ==
d); }
123 {
return RDirection_2::operator>=(d); }
126 operator<=(const CGAL::Direction_2<R> &
d)
const
127 {
return RDirection_2::operator<=(
d); }
131 {
return RDirection_2::operator>(d); }
134 operator<(const CGAL::Direction_2<R> &
d)
const
135 {
return RDirection_2::operator<(
d); }
139 const CGAL::Direction_2<R> &d2)
const
140 {
return RDirection_2::counterclockwise_in_between(d1,d2); }
144 {
return (CGAL::Vector_2<R>)RDirection_2::to_vector(); }
148 {
return (CGAL::Vector_2<R>)RDirection_2::to_vector(); }
152 {
return RDirection_2::transform(t); }
160 {
return RDirection_2::delta(i); }
172 #ifndef NO_OSTREAM_INSERT_DIRECTION_2
175 operator<<(std::ostream &os, const Direction_2<R> &
d)
177 typedef typename R::Direction_2_base RDirection_2;
178 return os << (
const RDirection_2&)
d;
181 #endif // NO_OSTREAM_INSERT_DIRECTION_2
183 #ifndef NO_ISTREAM_EXTRACT_DIRECTION_2
188 typedef typename R::Direction_2_base RDirection_2;
189 return is >> (RDirection_2&)p;
191 #endif // NO_ISTREAM_EXTRACT_DIRECTION_2
197 #endif // CGAL_DIRECTION_2_H
CGAL_END_NAMESPACE CGAL_BEGIN_NAMESPACE bool operator==(const Origin &o, const Point_2< R > &p)
Direction_2(const RVector_2 &v)
void int int REAL REAL * y
CGAL::Vector_2< R > vector() const
bool operator>(const CGAL::Direction_2< R > &d) const
Direction_2(const RDirection_2 &d)
bool counterclockwise_in_between(const CGAL::Direction_2< R > &d1, const CGAL::Direction_2< R > &d2) const
R::Direction_2_base RDirection_2
*********************************************************************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
Direction_2(const RT &x, const RT &y)
Direction_2(const CGAL::Direction_2< R > &d)
CGAL::Direction_2< R > transform(const CGAL::Aff_transformation_2< R > &t) const
bool operator!=(const CGAL::Direction_2< R > &d) const
bool operator==(const CGAL::Direction_2< R > &d) const
R::Vector_2_base RVector_2
CGAL::Direction_2< R > operator-() const
bool operator>=(const CGAL::Direction_2< R > &d) const
#define CGAL_BEGIN_NAMESPACE
#define CGAL_END_NAMESPACE
CGAL::Vector_2< R > to_vector() const
Point_2< R > operator-(const Origin &o, const Vector_2< R > &v)