Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
include/CGAL/SimpleCartesian/PointS2.h File Reference
#include <CGAL/Origin.h>
#include <CGAL/SimpleCartesian/VectorS2.h>
#include <CGAL/SimpleCartesian/Aff_transformationS2.h>
#include <CGAL/Bbox_2.h>
#include <CGAL/number_utils.h>
Include dependency graph for include/CGAL/SimpleCartesian/PointS2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PointS2< FT >
 

Functions

template<class FT >
CGAL_END_NAMESPACE
CGAL_BEGIN_NAMESPACE PointS2
< FT > 
operator+ (const PointS2< FT > &p, const VectorS2< FT > &v)
 
template<class FT >
PointS2< FT > operator- (const PointS2< FT > &p, const VectorS2< FT > &v)
 
template<class FT >
PointS2< FT > operator+ (const Origin &, const VectorS2< FT > &v)
 
template<class FT >
PointS2< FT > operator- (const Origin &, const VectorS2< FT > &v)
 
template<class FT >
VectorS2< FT > operator- (const PointS2< FT > &p, const PointS2< FT > &q)
 
template<class FT >
VectorS2< FT > operator- (const PointS2< FT > &p, const Origin &)
 
template<class FT >
VectorS2< FT > operator- (const Origin &, const PointS2< FT > &p)
 
template<class FT >
std::ostream & operator<< (std::ostream &os, const PointS2< FT > &p)
 
template<class FT >
std::istream & operator>> (std::istream &is, PointS2< FT > &p)
 

Function Documentation

CGAL_END_NAMESPACE CGAL_BEGIN_NAMESPACE PointS2<FT> operator+ ( const PointS2< FT > &  p,
const VectorS2< FT > &  v 
)
inline
PointS2<FT> operator+ ( const Origin ,
const VectorS2< FT > &  v 
)
inline

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

References v.

121 { return PointS2<FT>(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
PointS2<FT> operator- ( const PointS2< FT > &  p,
const VectorS2< FT > &  v 
)
inline
PointS2<FT> operator- ( const Origin ,
const VectorS2< FT > &  v 
)
inline

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

References v.

126 { return PointS2<FT>(-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
VectorS2<FT> operator- ( const PointS2< FT > &  p,
const PointS2< FT > &  q 
)
inline

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

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

132 { return VectorS2<FT>(p.x() - q.x(), p.y() - q.y()) ; }

Here is the call graph for this function:

VectorS2<FT> operator- ( const PointS2< FT > &  p,
const Origin  
)
inline

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

138 { return VectorS2<FT>(p) ; }
VectorS2<FT> operator- ( const Origin ,
const PointS2< FT > &  p 
)
inline

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

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

144 { return VectorS2<FT>(-p.x(), -p.y()) ; }

Here is the call graph for this function:

std::ostream& operator<< ( std::ostream &  os,
const PointS2< FT > &  p 
)

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

References IO::ASCII, IO::BINARY, IO::mode, and write().

151 {
152  switch(os.iword(IO::mode))
153  {
154  case IO::ASCII :
155  return os << p.x() << ' ' << p.y();
156  case IO::BINARY :
157  write(os, p.x());
158  write(os, p.y());
159  return os;
160  default:
161  return os << "PointS2(" << p.x() << ", " << p.y() << ')';
162  }
163 }
Definition: io.h:64
void write(std::ostream &os, const T &t, const io_Read_write &)
Definition: io.h:96
static int mode
Definition: io.h:63
Definition: io.h:64

Here is the call graph for this function:

std::istream& operator>> ( std::istream &  is,
PointS2< FT > &  p 
)

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

References IO::ASCII, IO::BINARY, CGAL_kernel_assertion_msg, IO::mode, read(), x, and y.

170 {
171  FT x, y;
172  switch(is.iword(IO::mode))
173  {
174  case IO::ASCII :
175  is >> x >> y;
176  break;
177  case IO::BINARY :
178  read(is, x);
179  read(is, y);
180  break;
181  default:
182  CGAL_kernel_assertion_msg(false,"Stream must be in ascii or binary mode");
183  // throw ios_base::failure("Stream must be in ascii or binary mode");
184  }
185  p = PointS2<FT>(x, y);
186  return is;
187 }
void int int REAL REAL * y
Definition: read.cpp:74
#define CGAL_kernel_assertion_msg(EX, MSG)
Definition: io.h:64
void int int REAL * x
Definition: read.cpp:74
static int mode
Definition: io.h:63
Definition: io.h:64
void read(std::istream &is, T &t, const io_Read_write &)
Definition: io.h:132

Here is the call graph for this function: