Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CGAL/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 CGAL/include/CGAL/SimpleCartesian/PointS3.h:

Go to the source code of this file.

Classes

class  PointS3< FT >
 

Functions

template<class FT >
CGAL_BEGIN_NAMESPACE PointS3< FT > operator+ (const Origin &o, const VectorS3< FT > &v)
 
template<class FT >
PointS3< FT > operator- (const Origin &o, 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 PointS3< FT > &p, 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_BEGIN_NAMESPACE PointS3<FT> operator+ ( const Origin o,
const VectorS3< FT > &  v 
)
inline

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

References v.

264 { 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 263 of file CGAL/include/CGAL/SimpleCartesian/PointS3.h.

References v.

264 { 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 Origin o,
const VectorS3< FT > &  v 
)
inline

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

References v.

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

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

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

276 { 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 282 of file CGAL/include/CGAL/SimpleCartesian/PointS3.h.

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

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

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

290 { 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 313 of file CGAL/include/CGAL/SimpleCartesian/PointS3.h.

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

314 {
315  switch(os.iword(IO::mode)) {
316  case IO::ASCII :
317  return os << p.x() << ' ' << p.y() << ' ' << p.z();
318  case IO::BINARY :
319  write(os, p.x());
320  write(os, p.y());
321  write(os, p.z());
322  return os;
323  default:
324  os << "PointS3(" << p.x() << ", " << p.y() << ", " << p.z() << ")";
325  return os;
326  }
327 }
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 332 of file CGAL/include/CGAL/SimpleCartesian/PointS3.h.

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

333 {
334  FT x, y, z;
335  switch(is.iword(IO::mode)) {
336  case IO::ASCII :
337  is >> x >> y >> z;
338  break;
339  case IO::BINARY :
340  read(is, x);
341  read(is, y);
342  read(is, z);
343  break;
344  default:
345  CGAL_kernel_assertion_msg(false,"Stream must be in ascii or binary mode"
346 );
347  // throw ios_base::failure("Stream must be in ascii or binary mode");
348  break;
349  }
350  p = PointS3<FT>(x, y, z);
351  return is;
352 }
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: