Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VectorS2< FT > Class Template Reference

#include <simple_cartesian_classes.h>

Public Types

typedef VectorS2< FT > Self
 
typedef DirectionS2< FT > Direction
 
typedef Aff_transformationS2< FT > Aff_transformation
 

Public Member Functions

 VectorS2 ()
 
 VectorS2 (const Null_vector &)
 
 VectorS2 (const FT &hx, const FT &hy, const FT &hw)
 
 VectorS2 (const FT &x, const FT &y)
 
bool operator== (const VectorS2< FT > &v) const
 
bool operator!= (const VectorS2< FT > &v) const
 
bool operator== (const Null_vector &) const
 
bool operator!= (const Null_vector &p) const
 
int id () const
 
FT hx () const
 
FT hy () const
 
FT hw () const
 
FT x () const
 
FT y () const
 
FT cartesian (int i) const
 
FT operator[] (int i) const
 
FT homogeneous (int i) const
 
int dimension () const
 
VectorS2< FT > operator+ (const VectorS2< FT > &w) const
 
VectorS2< FT > operator- (const VectorS2< FT > &w) const
 
VectorS2< FT > operator- () const
 
FT operator* (const VectorS2< FT > &w) const
 
VectorS2< FT > operator/ (const FT &c) const
 
DirectionS2< FT > direction () const
 
VectorS2< FT > perpendicular (const Orientation &o) const
 
VectorS2< FT > transform (const Aff_transformationS2< FT > &) const
 
 VectorS2 ()
 
 VectorS2 (const Null_vector &)
 
 VectorS2 (const FT &hx, const FT &hy, const FT &hw)
 
 VectorS2 (const FT &x, const FT &y)
 
 ~VectorS2 ()
 
Selfoperator= (const Self &v)
 
bool operator== (const Self &v) const
 
bool operator== (const Null_vector &) const
 
int id () const
 
FT hx () const
 
FT hy () const
 
FT hw () const
 
FT homogeneous (int i) const
 
const FT & x () const
 
const FT & y () const
 
FT & x ()
 
FT & y ()
 
const FT & cartesian (int i) const
 
FT & cartesian (int i)
 
FT & operator[] (int i)
 
const FT & operator[] (int i) const
 
int dimension () const
 
Self operator+ (const Self &v) const
 
Self operator- (const Self &v) const
 
Self operator- (const Null_vector &) const
 
Self operator- () const
 
FT operator* (const Self &v) const
 
Self operator/ (const FT &c) const
 
Selfoperator+= (const Self &v)
 
Selfoperator-= (const Self &v)
 
Selfoperator*= (const FT c)
 
Selfoperator/= (const FT c)
 
Selfoperator*= (const Self &v)
 
Selfoperator/= (const Self &v)
 
Self perpendicular (const Orientation &o) const
 
Self transform (const Aff_transformation &t) const
 
const Directiondirection () const
 

Public Attributes

FT e0
 
FT e1
 

Protected Member Functions

 VectorS2 (const PointS2< FT > &p)
 
 VectorS2 (const DirectionS2< FT > &d)
 

Private Attributes

FT _x
 
FT _y
 

Friends

class DirectionS2< FT >
 

Detailed Description

template<class FT>
class VectorS2< FT >

Definition at line 55 of file simple_cartesian_classes.h.

Member Typedef Documentation

typedef DirectionS2<FT> Direction

Definition at line 34 of file include/CGAL/SimpleCartesian/VectorS2.h.

typedef VectorS2<FT> Self

Definition at line 33 of file include/CGAL/SimpleCartesian/VectorS2.h.

Constructor & Destructor Documentation

CGAL_KERNEL_CTOR_MEDIUM_INLINE VectorS2 ( const FT &  hx,
const FT &  hy,
const FT &  hw 
)
VectorS2 ( )
inline

Definition at line 37 of file include/CGAL/SimpleCartesian/VectorS2.h.

37 {}
~VectorS2 ( )
inline

Definition at line 42 of file include/CGAL/SimpleCartesian/VectorS2.h.

42 {}

Member Function Documentation

const FT& cartesian ( int  i) const
inline

Definition at line 61 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::_x, VectorS2< FT >::_y, and CGAL_kernel_precondition.

61  {
62  CGAL_kernel_precondition( (i == 0) || (i == 1) );
63  return (i == 0) ? _x : _y;
64  }
blockLoc i
Definition: read.cpp:79
#define CGAL_kernel_precondition(EX)
FT& cartesian ( int  i)
inline

Definition at line 66 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::_x, VectorS2< FT >::_y, and CGAL_kernel_precondition.

66  {
67  CGAL_kernel_precondition( (i == 0) || (i == 1) );
68  return (i == 0) ? _x : _y;
69  }
blockLoc i
Definition: read.cpp:79
#define CGAL_kernel_precondition(EX)
CGAL_KERNEL_INLINE FT cartesian ( int  i) const

Definition at line 183 of file CGAL/include/CGAL/SimpleCartesian/VectorS2.h.

References CGAL_kernel_precondition, x, and y.

Referenced by VectorS2< FT >::homogeneous(), and VectorS2< FT >::operator[]().

184 {
185  CGAL_kernel_precondition( (i == 0) || (i == 1) );
186  return (i == 0) ? x() : y();
187 }
blockLoc i
Definition: read.cpp:79
#define CGAL_kernel_precondition(EX)

Here is the caller graph for this function:

int dimension ( ) const
inline

Definition at line 74 of file include/CGAL/SimpleCartesian/VectorS2.h.

74 { return 2; }
int dimension ( ) const
inline

Definition at line 196 of file CGAL/include/CGAL/SimpleCartesian/VectorS2.h.

197 { return 2; }
DirectionS2< FT > direction ( ) const
inline

Definition at line 251 of file CGAL/include/CGAL/SimpleCartesian/VectorS2.h.

252 { return DirectionS2<FT>(*this) ; }
const Direction& direction ( ) const
inline

Definition at line 112 of file include/CGAL/SimpleCartesian/VectorS2.h.

113  { return reinterpret_cast<const Direction&>(*this); }
FT homogeneous ( int  i) const
inline

Definition at line 54 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::cartesian().

54 { return (i == 2) ? FT(1) : cartesian(i); }
blockLoc i
Definition: read.cpp:79

Here is the call graph for this function:

CGAL_KERNEL_INLINE FT homogeneous ( int  i) const

Definition at line 216 of file CGAL/include/CGAL/SimpleCartesian/VectorS2.h.

217 { return (i == 2) ? FT(1) : cartesian(i); }
blockLoc i
Definition: read.cpp:79
FT hw ( ) const
inline

Definition at line 53 of file include/CGAL/SimpleCartesian/VectorS2.h.

53 { return FT(1); }
FT hw ( ) const
inline

Definition at line 211 of file CGAL/include/CGAL/SimpleCartesian/VectorS2.h.

212 { return FT(1); }
FT hx ( ) const
inline

Definition at line 51 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::_x.

FT hx ( ) const
inline
FT hy ( ) const
inline

Definition at line 52 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::_y.

FT hy ( ) const
inline
int id ( ) const
inline

Definition at line 49 of file include/CGAL/SimpleCartesian/VectorS2.h.

49 { return (int)this; }
int id ( ) const
bool operator!= ( const VectorS2< FT > &  v) const
inline

Definition at line 154 of file CGAL/include/CGAL/SimpleCartesian/VectorS2.h.

References v.

155 { return !(*this == 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
Definition: roccomf90.h:20
bool operator!= ( const Null_vector p) const
inline

Definition at line 164 of file CGAL/include/CGAL/SimpleCartesian/VectorS2.h.

References v.

165 { return !(*this == 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
Definition: roccomf90.h:20
FT operator* ( const Self v) const
inline

Definition at line 81 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::_x, and VectorS2< FT >::_y.

81 { return _x * v._x + _y * v._y; }
*********************************************************************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
Definition: roccomf90.h:20
CGAL_KERNEL_INLINE FT operator* ( const VectorS2< FT > &  w) const

Definition at line 236 of file CGAL/include/CGAL/SimpleCartesian/VectorS2.h.

References x, VectorS2< FT >::x(), y, and VectorS2< FT >::y().

237 { return x() * w.x() + y() * w.y() ; }

Here is the call graph for this function:

Self& operator*= ( const FT  c)
inline
Self& operator*= ( const Self v)
inline

Definition at line 98 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::_x, and VectorS2< FT >::_y.

99  { _x *= v._x; _y *=v._y; return *this; }
*********************************************************************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
Definition: roccomf90.h:20
Self operator+ ( const Self v) const
inline

Definition at line 76 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::_x, and VectorS2< FT >::_y.

76 { return Self(_x + v._x, _y + v._y); }
*********************************************************************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
Definition: roccomf90.h:20
CGAL_KERNEL_INLINE VectorS2< FT > operator+ ( const VectorS2< FT > &  w) const

Definition at line 221 of file CGAL/include/CGAL/SimpleCartesian/VectorS2.h.

References x, VectorS2< FT >::x(), y, and VectorS2< FT >::y().

Here is the call graph for this function:

Self& operator+= ( const Self v)
inline

Definition at line 85 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::_x, and VectorS2< FT >::_y.

85  {
86  _x += v._x; _y+=v._y;
87  return *this;
88  }
*********************************************************************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
Definition: roccomf90.h:20
Self operator- ( const Self v) const
inline

Definition at line 77 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::_x, and VectorS2< FT >::_y.

77 { return Self(_x - v._x, _y - v._y); }
*********************************************************************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
Definition: roccomf90.h:20
Self operator- ( const Null_vector ) const
inline

Definition at line 78 of file include/CGAL/SimpleCartesian/VectorS2.h.

78 { return *this; }
CGAL_KERNEL_INLINE VectorS2< FT > operator- ( const VectorS2< FT > &  w) const

Definition at line 226 of file CGAL/include/CGAL/SimpleCartesian/VectorS2.h.

References x, VectorS2< FT >::x(), y, and VectorS2< FT >::y().

Here is the call graph for this function:

CGAL_KERNEL_INLINE VectorS2< FT > operator- ( ) const
Self& operator-= ( const Self v)
inline

Definition at line 89 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::_x, and VectorS2< FT >::_y.

89  {
90  _x -= v._x; _y-=v._y;
91  return *this;
92  }
*********************************************************************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
Definition: roccomf90.h:20
Self operator/ ( const FT &  c) const
inline
CGAL_KERNEL_INLINE VectorS2< FT > operator/ ( const FT &  c) const

Definition at line 246 of file CGAL/include/CGAL/SimpleCartesian/VectorS2.h.

References x, and y.

Self& operator/= ( const FT  c)
inline
Self& operator/= ( const Self v)
inline

Definition at line 100 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::_x, and VectorS2< FT >::_y.

101  { _x /= v._x; _y /=v._y; return *this; }
*********************************************************************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
Definition: roccomf90.h:20
Self& operator= ( const Self v)
inline

Definition at line 44 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::_x, and VectorS2< FT >::_y.

44 { _x=v._x; _y=v._y; return *this; }
*********************************************************************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
Definition: roccomf90.h:20
bool operator== ( const Self v) const
inline

Definition at line 46 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::_x, and VectorS2< FT >::_y.

46 { return _x==v._x && _y==v._y; }
*********************************************************************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
Definition: roccomf90.h:20
bool operator== ( const Null_vector ) const
inline
CGAL_KERNEL_INLINE bool operator== ( const VectorS2< FT > &  v) const

Definition at line 149 of file CGAL/include/CGAL/SimpleCartesian/VectorS2.h.

References x, VectorS2< FT >::x(), y, and VectorS2< FT >::y().

150 { return (x() == v.x()) && (y() == v.y()); }

Here is the call graph for this function:

bool operator== ( const Null_vector ) const
inline

Definition at line 159 of file CGAL/include/CGAL/SimpleCartesian/VectorS2.h.

References x, and y.

160 { return (x() == FT(0)) && (y() == FT(0)); }
FT& operator[] ( int  i)
inline

Definition at line 71 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::cartesian().

71 { return cartesian(i); }
blockLoc i
Definition: read.cpp:79

Here is the call graph for this function:

const FT& operator[] ( int  i) const
inline

Definition at line 72 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::cartesian().

72 { return cartesian(i); }
blockLoc i
Definition: read.cpp:79

Here is the call graph for this function:

FT operator[] ( int  i) const
inline

Definition at line 191 of file CGAL/include/CGAL/SimpleCartesian/VectorS2.h.

192 { return cartesian(i); }
blockLoc i
Definition: read.cpp:79
CGAL_KERNEL_MEDIUM_INLINE VectorS2< FT > perpendicular ( const Orientation o) const

Definition at line 256 of file CGAL/include/CGAL/SimpleCartesian/VectorS2.h.

References CGAL_kernel_precondition, COLLINEAR, COUNTERCLOCKWISE, x, and y.

257 {
259  if (o == COUNTERCLOCKWISE)
260  return VectorS2<FT>(-y(), x());
261  else
262  return VectorS2<FT>(y(), -x());
263 }
const Orientation COUNTERCLOCKWISE
Definition: enum.h:70
const Orientation COLLINEAR
Definition: enum.h:72
#define CGAL_kernel_precondition(EX)
Self perpendicular ( const Orientation o) const
inline

Definition at line 103 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::_x, VectorS2< FT >::_y, CGAL_kernel_precondition, COLLINEAR, and COUNTERCLOCKWISE.

103  {
105  if (o == COUNTERCLOCKWISE) return Self(-_y, _x);
106  else return Self(_y, -_x);
107  }
const Orientation COUNTERCLOCKWISE
Definition: enum.h:70
const Orientation COLLINEAR
Definition: enum.h:72
#define CGAL_kernel_precondition(EX)
VectorS2< FT > transform ( const Aff_transformationS2< FT > &  t) const
inline

Definition at line 267 of file CGAL/include/CGAL/SimpleCartesian/VectorS2.h.

References Aff_transformationS2< FT >::transform().

268 { return t.transform(*this); }
PointS2< FT > transform(const PointS2< FT > &p) const

Here is the call graph for this function:

Self transform ( const Aff_transformation t) const
inline

Definition at line 108 of file include/CGAL/SimpleCartesian/VectorS2.h.

References Aff_transformationS2< FT >::transform().

109  { return t.transform(*this); }

Here is the call graph for this function:

const FT& x ( ) const
inline

Definition at line 56 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::_x.

FT& x ( )
inline

Definition at line 58 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::_x.

const FT& y ( ) const
inline

Definition at line 57 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::_y.

FT& y ( )
inline

Definition at line 59 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::_y.

Friends And Related Function Documentation

friend class DirectionS2< FT >
friend

Definition at line 61 of file CGAL/include/CGAL/SimpleCartesian/VectorS2.h.

Member Data Documentation


The documentation for this class was generated from the following files: