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

Go to the source code of this file.

Classes

class  RayS2< FT >
 

Functions

template<class FT >
std::ostream & operator<< (std::ostream &os, const RayS2< FT > &r)
 
template<class FT >
std::istream & operator>> (std::istream &is, RayS2< FT > &r)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const RayS2< FT > &  r 
)

Definition at line 223 of file RayS2.h.

References IO::ASCII, IO::BINARY, and IO::mode.

224 {
225  switch(os.iword(IO::mode)) {
226  case IO::ASCII :
227  return os << r.source() << ' ' << r.direction();
228  case IO::BINARY :
229  return os << r.source() << r.direction();
230  default:
231  return os << "RayS2(" << r.source() << ", " << r.direction() << ")";
232  }
233 }
DirectionS2< FT > direction() const
Definition: RayS2.h:149
Definition: io.h:64
const PointS2< FT > & source() const
Definition: RayS2.h:122
static int mode
Definition: io.h:63
Definition: io.h:64
std::istream& operator>> ( std::istream &  is,
RayS2< FT > &  r 
)

Definition at line 238 of file RayS2.h.

References d.

239 {
240  PointS2<FT> p;
242 
243  is >> p >> d;
244 
245  r = RayS2<FT>(p, d);
246  return is;
247 }
const NT & d
Definition: RayS2.h:60