Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
include/CGAL/SimpleCartesian/VectorS3.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  VectorS3< FT >
 

Functions

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 > &v)
 

Function Documentation

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

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

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

140 {
141  return VectorS3<FT>( v.y() * w.z() - v.z() * w.y() ,
142  v.z() * w.x() - v.x() * w.z() ,
143  v.x() * w.y() - v.y() * w.x() );
144 }

Here is the call graph for this function:

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

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

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

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

Here is the call graph for this function:

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

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

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

148 {
149  switch(os.iword(IO::mode)) {
150  case IO::ASCII :
151  return os << v.x() << ' ' << v.y() << ' ' << v.z();
152  case IO::BINARY :
153  write(os, v.x());
154  write(os, v.y());
155  write(os, v.z());
156  return os;
157  default:
158  os << "VectorS3(" << v.x() << ", " << v.y() << ", " << v.z() << ")";
159  return os;
160  }
161 }
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 > &  v 
)

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

References IO::ASCII, IO::BINARY, IO::mode, read(), VectorS3< FT >::x(), VectorS3< FT >::y(), and VectorS3< FT >::z().

165 {
166  switch(is.iword(IO::mode)) {
167  case IO::ASCII :
168  is >> v.x() >> v.y() >> v.z();
169  break;
170  case IO::BINARY :
171  read(is, v.x());
172  read(is, v.y());
173  read(is, v.z());
174  break;
175  default:
176  std::cerr << "\nStream must be in ascii or binary mode\n";
177  break;
178  }
179  return is;
180 }
Definition: io.h:64
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: