Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CGAL/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 CGAL/include/CGAL/SimpleCartesian/PointS2.h:

Go to the source code of this file.

Classes

class  PointS2< FT >
 

Functions

template<class FT >
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

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

References v.

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

References v.

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

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

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

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

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

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

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

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

256 {
257  switch(os.iword(IO::mode))
258  {
259  case IO::ASCII :
260  return os << p.x() << ' ' << p.y();
261  case IO::BINARY :
262  write(os, p.x());
263  write(os, p.y());
264  return os;
265  default:
266  return os << "PointS2(" << p.x() << ", " << p.y() << ')';
267  }
268 }
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 274 of file CGAL/include/CGAL/SimpleCartesian/PointS2.h.

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

275 {
276  FT x, y;
277  switch(is.iword(IO::mode))
278  {
279  case IO::ASCII :
280  is >> x >> y;
281  break;
282  case IO::BINARY :
283  read(is, x);
284  read(is, y);
285  break;
286  default:
287  CGAL_kernel_assertion_msg(false,"Stream must be in ascii or binary mode");
288  // throw ios_base::failure("Stream must be in ascii or binary mode");
289  }
290  p = PointS2<FT>(x, y);
291  return is;
292 }
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: