51 #ifndef CGAL_DIRECTION_3_H
52 #define CGAL_DIRECTION_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_DIRECTIONH3_H
60 #include <CGAL/DirectionH3.h>
61 #endif // CGAL_DIRECTIONH3_H
62 #endif // CGAL_HOMOGENEOUS_H
64 #ifdef CGAL_CARTESIAN_H
65 #ifndef CGAL_DIRECTIONC3_H
66 #include <CGAL/Cartesian/Direction_3.h>
67 #endif // CGAL_DIRECTIONC3_H
68 #endif // CGAL_CARTESIAN_H
70 #ifdef CGAL_SIMPLE_CARTESIAN_H
72 #endif // CGAL_SIMPLE_CARTESIAN_H
75 #ifndef CGAL_VECTOR_3_H
77 #endif // CGAL_VECTOR_3_H
86 typedef typename R::RT
RT;
87 typedef typename R::FT
FT;
110 {
return !(*
this ==
d); }
113 {
return (CGAL::Vector_3<R>)RDirection_3::to_vector(); }
116 {
return (CGAL::Vector_3<R>)RDirection_3::to_vector(); }
118 CGAL::Direction_3<R>
transform(
const CGAL::Aff_transformation_3<R> & t)
const
119 {
return RDirection_3::transform(t); }
125 {
return RDirection_3::delta(i); }
134 {
return RDirection_3::dz(); }
138 #ifndef NO_OSTREAM_INSERT_DIRECTION_3
140 std::ostream& operator<<(std::ostream& os, const Direction_3<R>&
d)
142 typedef typename R::Direction_3_base RDirection_3;
143 return os << (
const RDirection_3& )
d; }
144 #endif // NO_OSTREAM_INSERT_DIRECTION_3
147 #ifndef NO_ISTREAM_EXTRACT_DIRECTION_3
151 typedef typename R::Direction_3_base RDirection_3;
152 return is >> (RDirection_3& )p; }
153 #endif // NO_ISTREAM_EXTRACT_DIRECTION_3
158 #endif // CGAL_DIRECTION_3_H
Direction_3(const RDirection_3 &d)
Direction_3(const CGAL::Direction_3< R > &d)
CGAL_END_NAMESPACE CGAL_BEGIN_NAMESPACE bool operator==(const Origin &o, const Point_2< R > &p)
CGAL::Direction_3< R > transform(const CGAL::Aff_transformation_3< R > &t) const
R::Direction_3_base RDirection_3
*********************************************************************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::Direction_3< R > &d) const
bool operator==(const CGAL::Direction_3< R > &d) const
R::Vector_3_base RVector_3
Direction_3(const RT &hx, const RT &hy, const RT &hz)
Direction_3(const RVector_3 &v)
CGAL::Vector_3< R > to_vector() const
CGAL::Vector_3< R > vector() const
#define CGAL_BEGIN_NAMESPACE
#define CGAL_END_NAMESPACE
Point_2< R > operator-(const Origin &o, const Vector_2< R > &v)
CGAL::Direction_3< R > operator-() const