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

Go to the source code of this file.

Classes

class  PointS3< FT >
 

Functions

template<class FT >
CGAL_END_NAMESPACE
CGAL_BEGIN_NAMESPACE PointS3
< FT > 
operator+ (const PointS3< FT > &p, const VectorS3< FT > &v)
 
template<class FT >
PointS3< FT > operator- (const PointS3< FT > &p, const VectorS3< FT > &v)
 
template<class FT >
PointS3< FT > operator+ (const Origin &, const VectorS3< FT > &v)
 
template<class FT >
PointS3< FT > operator- (const Origin &, const VectorS3< FT > &v)
 
template<class FT >
VectorS3< FT > operator- (const PointS3< FT > &p, const PointS3< FT > &q)
 
template<class FT >
VectorS3< FT > operator- (const PointS3< FT > &p, const Origin &)
 
template<class FT >
VectorS3< FT > operator- (const Origin &, const PointS3< FT > &p)
 
template<class FT >
std::ostream & operator<< (std::ostream &os, const PointS3< FT > &p)
 
template<class FT >
std::istream & operator>> (std::istream &is, PointS3< FT > &p)
 

Function Documentation

CGAL_END_NAMESPACE CGAL_BEGIN_NAMESPACE PointS3<FT> operator+ ( const PointS3< FT > &  p,
const VectorS3< FT > &  v 
)
inline
PointS3<FT> operator+ ( const Origin ,
const VectorS3< FT > &  v 
)
inline

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

References v.

134 { return PointS3<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
PointS3<FT> operator- ( const PointS3< FT > &  p,
const VectorS3< FT > &  v 
)
inline
PointS3<FT> operator- ( const Origin ,
const VectorS3< FT > &  v 
)
inline

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

References v.

140 { return PointS3<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
VectorS3<FT> operator- ( const PointS3< FT > &  p,
const PointS3< FT > &  q 
)
inline

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

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

146 { return VectorS3<FT>(p.x() - q.x(), p.y() - q.y(), p.z() - q.z()); }

Here is the call graph for this function:

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

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

153 { return VectorS3<FT>(p); }
VectorS3<FT> operator- ( const Origin ,
const PointS3< FT > &  p 
)
inline

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

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

160 { return VectorS3<FT>(-p.x(), -p.y(), -p.z()); }

Here is the call graph for this function:

std::ostream& operator<< ( std::ostream &  os,
const PointS3< FT > &  p 
)

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

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

166 {
167  switch(os.iword(IO::mode)) {
168  case IO::ASCII :
169  return os << p.x() << ' ' << p.y() << ' ' << p.z();
170  case IO::BINARY :
171  write(os, p.x());
172  write(os, p.y());
173  write(os, p.z());
174  return os;
175  default:
176  os << "PointS3(" << p.x() << ", " << p.y() << ", " << p.z() << ")";
177  return os;
178  }
179 }
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,
PointS3< FT > &  p 
)

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

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

185 {
186  FT x, y, z;
187  switch(is.iword(IO::mode)) {
188  case IO::ASCII :
189  is >> x >> y >> z;
190  break;
191  case IO::BINARY :
192  read(is, x);
193  read(is, y);
194  read(is, z);
195  break;
196  default:
197  CGAL_kernel_assertion_msg(false,"Stream must be in ascii or binary mode"
198 );
199  // throw ios_base::failure("Stream must be in ascii or binary mode");
200  break;
201  }
202  p = PointS3<FT>(x, y, z);
203  return is;
204 }
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: