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

Go to the source code of this file.

Classes

class  VectorS3< FT >
 

Functions

template<class FT >
CGAL_BEGIN_NAMESPACE VectorS3< FT > operator- (const PointS3< FT > &p, const Origin &o)
 
template<class FT >
VectorS3< FT > operator* (const FT &c, const VectorS3< FT > &w)
 
template<class FT >
VectorS3< FT > cross_product (const VectorS3< FT > &v, const VectorS3< FT > &w)
 
template<class FT >
std::ostream & operator<< (std::ostream &os, const VectorS3< FT > &v)
 
template<class FT >
std::istream & operator>> (std::istream &is, VectorS3< FT > &p)
 

Function Documentation

VectorS3<FT> cross_product ( const VectorS3< FT > &  v,
const VectorS3< FT > &  w 
)

Definition at line 285 of file CGAL/include/CGAL/SimpleCartesian/VectorS3.h.

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

Referenced by cross_product(), and side_check().

286 {
287  return VectorS3<FT>( v.y() * w.z() - v.z() * w.y() ,
288  v.z() * w.x() - v.x() * w.z() ,
289  v.x() * w.y() - v.y() * w.x() );
290 }

Here is the call graph for this function:

Here is the caller graph for this function:

VectorS3<FT> operator* ( const FT &  c,
const VectorS3< FT > &  w 
)
inline

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

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

275 { return VectorS3<FT>( c* w.x(), c * w.y(), c * w.z()) ; }

Here is the call graph for this function:

CGAL_BEGIN_NAMESPACE VectorS3<FT> operator- ( const PointS3< FT > &  p,
const Origin o 
)
inline

Definition at line 282 of file CGAL/include/CGAL/SimpleCartesian/PointS3.h.

283 { return VectorS3<FT>(p); }
std::ostream& operator<< ( std::ostream &  os,
const VectorS3< FT > &  v 
)

Definition at line 307 of file CGAL/include/CGAL/SimpleCartesian/VectorS3.h.

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

308 {
309  switch(os.iword(IO::mode)) {
310  case IO::ASCII :
311  return os << v.x() << ' ' << v.y() << ' ' << v.z();
312  case IO::BINARY :
313  write(os, v.x());
314  write(os, v.y());
315  write(os, v.z());
316  return os;
317  default:
318  os << "VectorS3(" << v.x() << ", " << v.y() << ", " << v.z() << ")";
319  return os;
320  }
321 }
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,
VectorS3< FT > &  p 
)

Definition at line 326 of file CGAL/include/CGAL/SimpleCartesian/VectorS3.h.

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

327 {
328  FT x, y, z;
329  switch(is.iword(IO::mode)) {
330  case IO::ASCII :
331  is >> x >> y >> z;
332  break;
333  case IO::BINARY :
334  read(is, x);
335  read(is, y);
336  read(is, z);
337  break;
338  default:
339  CGAL_kernel_assertion_msg(false,"Stream must be in ascii or binary mode");
340  // throw ios_base::failure("Stream must be in ascii or binary mode");
341  break;
342  }
343  p = VectorS3<FT>(x, y, z);
344  return is;
345 }
void int int REAL REAL * y
Definition: read.cpp:74
#define CGAL_kernel_assertion_msg(EX, MSG)
Definition: io.h:64
void int int int REAL REAL REAL * z
Definition: write.cpp:76
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: