Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CGAL/include/CGAL/SimpleCartesian/VectorS2.h File Reference
#include <CGAL/SimpleCartesian/PointS2.h>
#include <CGAL/SimpleCartesian/DirectionS2.h>
Include dependency graph for CGAL/include/CGAL/SimpleCartesian/VectorS2.h:

Go to the source code of this file.

Classes

class  VectorS2< FT >
 

Functions

template<class FT >
CGAL_KERNEL_INLINE VectorS2< FT > operator* (const FT &c, const VectorS2< FT > &w)
 
template<class FT >
std::ostream & operator<< (std::ostream &os, const VectorS2< FT > &v)
 
template<class FT >
std::istream & operator>> (std::istream &is, VectorS2< FT > &p)
 

Function Documentation

CGAL_KERNEL_INLINE VectorS2<FT> operator* ( const FT &  c,
const VectorS2< FT > &  w 
)

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

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

Here is the call graph for this function:

std::ostream& operator<< ( std::ostream &  os,
const VectorS2< FT > &  v 
)

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

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

275 {
276  switch(os.iword(IO::mode)) {
277  case IO::ASCII :
278  return os << v.x() << ' ' << v.y();
279  case IO::BINARY :
280  write(os, v.x());
281  write(os, v.y());
282  return os;
283  default:
284  return os << "VectorS2(" << v.x() << ", " << v.y() << ')';
285  }
286 }
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,
VectorS2< FT > &  p 
)

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

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

292 {
293  FT x, y;
294  switch(is.iword(IO::mode)) {
295  case IO::ASCII :
296  is >> x >> y;
297  break;
298  case IO::BINARY :
299  read(is, x);
300  read(is, y);
301  break;
302  default:
303  std::cerr << "" << std::endl;
304  std::cerr << "Stream must be in ascii or binary mode" << std::endl;
305  break;
306  }
307  p = VectorS2<FT>(x, y);
308  return is;
309 }
void int int REAL REAL * y
Definition: read.cpp:74
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: