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

#include <PointS2.h>

Public Member Functions

 PointS2 ()
 
 PointS2 (const Origin &)
 
 PointS2 (const FT &hx, const FT &hy, const FT &hw)
 
 PointS2 (const FT &x, const FT &y)
 
bool operator== (const PointS2< FT > &p) const
 
bool operator!= (const PointS2< FT > &p) const
 
const FT & hx () const
 
const FT & hy () const
 
FT hw () const
 
const FT & x () const
 
const FT & y () const
 
FT cartesian (int i) const
 
FT operator[] (int i) const
 
FT homogeneous (int i) const
 
int dimension () const
 
Bbox_2 bbox () const
 
PointS2< FT > transform (const Aff_transformationS2< FT > &) const
 
 PointS2 (const VectorS2< FT > &v)
 
 PointS2 ()
 
 PointS2 (const Origin &)
 
 PointS2 (const FT &hx, const FT &hy, const FT &hw)
 
 PointS2 (const FT &x, const FT &y)
 
 ~PointS2 ()
 
Selfoperator= (const Self &p)
 
bool operator== (const Self &p) const
 
bool operator== (const Origin &) const
 
bool operator< (const Self &p) 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
 
Selfoperator+= (const Vector &v)
 
Selfoperator-= (const Vector &v)
 
Bbox_2 bbox () const
 
Self transform (const Aff_transformation &t) const
 

Public Attributes

FT e0
 
FT e1
 

Private Types

typedef PointS2< FT > Self
 
typedef VectorS2< FT > Vector
 
typedef Aff_transformationS2< FT > Aff_transformation
 

Private Attributes

FT _x
 
FT _y
 

Detailed Description

template<class FT>
class PointS2< FT >

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

Member Typedef Documentation

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

typedef PointS2<FT> Self
private

Definition at line 32 of file include/CGAL/SimpleCartesian/PointS2.h.

typedef VectorS2<FT> Vector
private

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

Constructor & Destructor Documentation

PointS2 ( )
inline

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

61 {}
CGAL_KERNEL_CTOR_INLINE PointS2 ( const FT &  hx,
const FT &  hy,
const FT &  hw 
)

Definition at line 109 of file CGAL/include/CGAL/SimpleCartesian/PointS2.h.

110 {
111  if( hw != FT(1))
112  { e0 = hx/hw; e1 = hy/hw; }
113  else
114  { e0 = hx; e1 = hy; }
115 }
CGAL_KERNEL_CTOR_INLINE PointS2 ( const FT &  x,
const FT &  y 
)
PointS2 ( )
inline

Definition at line 36 of file include/CGAL/SimpleCartesian/PointS2.h.

36 {}
PointS2 ( const Origin )
inline
PointS2 ( const FT &  hx,
const FT &  hy,
const FT &  hw 
)
inline
PointS2 ( const FT &  x,
const FT &  y 
)
inline
~PointS2 ( )
inline

Definition at line 41 of file include/CGAL/SimpleCartesian/PointS2.h.

41 {}

Member Function Documentation

CGAL_KERNEL_INLINE Bbox_2 bbox ( ) const

Definition at line 245 of file CGAL/include/CGAL/SimpleCartesian/PointS2.h.

References by, to_double(), x, and y.

246 {
247  double bx = CGAL::to_double(x());
248  double by = CGAL::to_double(y());
249  return Bbox_2(bx,by, bx,by);
250 }
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed by
Definition: roccomf90.h:7
CGAL_BEGIN_NAMESPACE double to_double(double d)
Definition: double.h:68

Here is the call graph for this function:

Bbox_2 bbox ( ) const
inline

Definition at line 86 of file include/CGAL/SimpleCartesian/PointS2.h.

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

86 { return Bbox_2(x(),y(),x(),y()); }

Here is the call graph for this function:

const FT& cartesian ( int  i) const
inline

Definition at line 62 of file include/CGAL/SimpleCartesian/PointS2.h.

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

62  {
63  CGAL_kernel_precondition( (i == 0) || (i == 1) );
64  return (i == 0) ? x() : y();
65  }
blockLoc i
Definition: read.cpp:79
#define CGAL_kernel_precondition(EX)

Here is the call graph for this function:

FT& cartesian ( int  i)
inline

Definition at line 67 of file include/CGAL/SimpleCartesian/PointS2.h.

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

67  {
68  CGAL_kernel_precondition( (i == 0) || (i == 1) );
69  return (i == 0) ? x() : y();
70  }
blockLoc i
Definition: read.cpp:79
#define CGAL_kernel_precondition(EX)

Here is the call graph for this function:

CGAL_KERNEL_INLINE FT cartesian ( int  i) const

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

References CGAL_kernel_precondition, x, and y.

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

150 {
151  CGAL_kernel_precondition( (i == 0) || (i == 1) );
152  return (i == 0) ? x() : y();
153 }
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 75 of file include/CGAL/SimpleCartesian/PointS2.h.

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

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

165 { return 2; }
FT homogeneous ( int  i) const
inline

Definition at line 55 of file include/CGAL/SimpleCartesian/PointS2.h.

References PointS2< FT >::cartesian().

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

Here is the call graph for this function:

FT homogeneous ( int  i) const
inline

Definition at line 188 of file CGAL/include/CGAL/SimpleCartesian/PointS2.h.

References CGAL_kernel_precondition.

189 {
190  CGAL_kernel_precondition( (i>=0) && (i<=2) );
191  if (i<2) return cartesian(i);
192  return FT(1);
193 }
blockLoc i
Definition: read.cpp:79
#define CGAL_kernel_precondition(EX)
FT hw ( ) const
inline

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

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

Definition at line 182 of file CGAL/include/CGAL/SimpleCartesian/PointS2.h.

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

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

References PointS2< FT >::x().

52 { return x(); }

Here is the call graph for this function:

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

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

References PointS2< FT >::y().

53 { return y(); }

Here is the call graph for this function:

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

Definition at line 50 of file include/CGAL/SimpleCartesian/PointS2.h.

50 { return (int)this; }
bool operator!= ( const PointS2< FT > &  p) const
inline

Definition at line 131 of file CGAL/include/CGAL/SimpleCartesian/PointS2.h.

132 { return !(*this == p); }
Self& operator+= ( const Vector v)
inline

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

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

77  {
78  _x += v.x(); _y+=v.y();
79  return *this;
80  }
*********************************************************************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

Here is the call graph for this function:

Self& operator-= ( const Vector v)
inline

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

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

81  {
82  _x -= v.x(); _y-=v.y();
83  return *this;
84  }
*********************************************************************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

Here is the call graph for this function:

bool operator< ( const Self p) const
inline

Definition at line 47 of file include/CGAL/SimpleCartesian/PointS2.h.

References lexicographically_xy_smaller().

48  { return lexicographically_xy_smaller(*this, p); }
bool lexicographically_xy_smaller(const Point_2< R > &p, const Point_2< R > &q)

Here is the call graph for this function:

Self& operator= ( const Self p)
inline

Definition at line 43 of file include/CGAL/SimpleCartesian/PointS2.h.

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

43 { _x = p._x; _y = p._y; return *this; }
bool operator== ( const Self p) const
inline

Definition at line 45 of file include/CGAL/SimpleCartesian/PointS2.h.

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

45 { return x()==p.x() && y()==p.y(); }

Here is the call graph for this function:

bool operator== ( const Origin ) const
inline

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

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

46 { return x()==FT(0) && y()==FT(0); }

Here is the call graph for this function:

bool operator== ( const PointS2< FT > &  p) const
inline

Definition at line 125 of file CGAL/include/CGAL/SimpleCartesian/PointS2.h.

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

126 { return ((x() == p.x()) && (y() == p.y())) ; }

Here is the call graph for this function:

FT& operator[] ( int  i)
inline

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

References PointS2< FT >::cartesian().

72 { 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 73 of file include/CGAL/SimpleCartesian/PointS2.h.

References PointS2< FT >::cartesian().

73 { 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 158 of file CGAL/include/CGAL/SimpleCartesian/PointS2.h.

159 { return cartesian(i); }
blockLoc i
Definition: read.cpp:79
CGAL_KERNEL_INLINE PointS2< FT > transform ( const Aff_transformationS2< FT > &  t) const

Definition at line 239 of file CGAL/include/CGAL/SimpleCartesian/PointS2.h.

References Aff_transformationS2< FT >::transform().

240 { 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 88 of file include/CGAL/SimpleCartesian/PointS2.h.

References Aff_transformationS2< FT >::transform().

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

Here is the call graph for this function:

const FT& x ( ) const
inline

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

References PointS2< FT >::_x.

57 { return _x; }
FT& x ( )
inline

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

References PointS2< FT >::_x.

59 { return _x; }
const FT& y ( ) const
inline

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

References PointS2< FT >::_y.

58 { return _y; }
FT& y ( )
inline

Definition at line 60 of file include/CGAL/SimpleCartesian/PointS2.h.

References PointS2< FT >::_y.

60 { return _y; }

Member Data Documentation

FT e0
FT e1

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