Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PointS3< FT > Class Template Reference

#include <PointS3.h>

Public Types

typedef PointS3< FT > Self
 
typedef VectorS3< FT > Vector
 
typedef Aff_transformationS3< FT > Aff_transformation
 

Public Member Functions

 PointS3 ()
 
 PointS3 (const Origin &o)
 
 PointS3 (const FT &x, const FT &y, const FT &z)
 
 PointS3 (const FT &x, const FT &y, const FT &z, const FT &hw)
 
bool operator== (const PointS3< FT > &p) const
 
bool operator!= (const PointS3< FT > &p) const
 
const FT & x () const
 
const FT & y () const
 
const FT & z () const
 
const FT & hx () const
 
const FT & hy () const
 
const FT & hz () const
 
FT hw () const
 
const FT & cartesian (int i) const
 
const FT & operator[] (int i) const
 
FT homogeneous (int i) const
 
int dimension () const
 
Bbox_3 bbox () const
 
PointS3< FT > transform (const Aff_transformationS3< FT > &) const
 
 PointS3 (const VectorS3< FT > &v)
 
 PointS3 ()
 
 PointS3 (const Origin &)
 
 PointS3 (const FT &hx, const FT &hy, const FT &hz, const FT &hw)
 
 PointS3 (const FT &x, const FT &y, const FT &z)
 
 ~PointS3 ()
 
Selfoperator= (const Self &p)
 
bool operator== (const Self &p) const
 
bool operator== (const Origin &) const
 
bool operator< (const Self &p) const
 
int id () const
 
FT hx () const
 
FT hy () const
 
FT hz () const
 
FT hw () const
 
FT homogeneous (int i) const
 
const FT & x () const
 
const FT & y () const
 
const FT & z () const
 
FT & x ()
 
FT & y ()
 
FT & z ()
 
const FT & cartesian (int i) const
 
FT & cartesian (int i)
 
FT & operator[] (int i)
 
const FT & operator[] (int i) const
 
int dimension () const
 
Selfoperator+= (const Vector &v)
 
Selfoperator-= (const Vector &v)
 
Bbox_3 bbox () const
 
Self transform (const Aff_transformation &t) const
 

Public Attributes

FT e0
 
FT e1
 
FT e2
 

Protected Attributes

FT _x
 
FT _y
 
FT _z
 

Friends

CGAL_FRIEND_INLINE PointS3< FT > operator+CGAL_NULL_TMPL_ARGS (const Origin &o, const VectorS3< FT > &v)
 
CGAL_FRIEND_INLINE PointS3< FT > operator-CGAL_NULL_TMPL_ARGS (const Origin &o, const VectorS3< FT > &v)
 

Detailed Description

template<class FT>
class PointS3< FT >

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

Member Typedef Documentation

typedef PointS3<FT> Self

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

typedef VectorS3<FT> Vector

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

Constructor & Destructor Documentation

PointS3 ( )
inline

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

78 {}
CGAL_END_NAMESPACE CGAL_BEGIN_NAMESPACE PointS3 ( const FT &  x,
const FT &  y,
const FT &  z,
const FT &  hw 
)

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

References x, y, and z.

129 {
130  if (w != FT(1))
131  {
132  e0 = x/w;
133  e1 = y/w;
134  e2 = z/w;
135  }
136  else
137  {
138  e0 = x;
139  e1 = y;
140  e2 = z;
141  }
142 }
PointS3 ( )
inline

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

37 {}
PointS3 ( const FT &  hx,
const FT &  hy,
const FT &  hz,
const FT &  hw 
)
inline
PointS3 ( const FT &  x,
const FT &  y,
const FT &  z 
)
inline
~PointS3 ( )
inline

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

43 {}

Member Function Documentation

Bbox_3 bbox ( ) const
inline

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

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

97 { return Bbox_3(x(),y(),z(),x(),y(),z()); }

Here is the call graph for this function:

Bbox_3 bbox ( ) const

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

References by, to_double(), x, y, and z.

302 {
303  // Not robust...
304  double bx = CGAL::to_double(x());
305  double by = CGAL::to_double(y());
306  double bz = CGAL::to_double(z());
307  return Bbox_3(bx, by, bz, bx, by, bz);
308 }
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed by
Definition: roccomf90.h:7
CGAL_BEGIN_NAMESPACE double to_double(double d)
Definition: double.h:68

Here is the call graph for this function:

const FT& cartesian ( int  i) const
inline

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

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

72  {
73  CGAL_kernel_precondition( i >= 0 && i <= 2 );
74  return (i==0) ? x() :
75  (i==1) ? y() : z() ;
76  }
blockLoc i
Definition: read.cpp:79
#define CGAL_kernel_precondition(EX)

Here is the call graph for this function:

FT& cartesian ( int  i)
inline

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

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

78  {
79  CGAL_kernel_precondition( i >= 0 && i <= 2 );
80  return (i==0) ? x() :
81  (i==1) ? y() : z() ;
82  }
blockLoc i
Definition: read.cpp:79
#define CGAL_kernel_precondition(EX)

Here is the call graph for this function:

const FT & cartesian ( int  i) const
inline

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

References CGAL_kernel_precondition, x, y, and z.

Referenced by PointS3< FT >::homogeneous(), and PointS3< FT >::operator[]().

197 {
198  CGAL_kernel_precondition( (i>=0) && (i<=2) );
199  return (i==0) ? x() :
200  (i==1) ? y() : z();
201 }
blockLoc i
Definition: read.cpp:79
#define CGAL_kernel_precondition(EX)

Here is the caller graph for this function:

int dimension ( ) const
inline

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

87 { return 3; }
int dimension ( ) const
inline

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

190 { return 3; }
FT homogeneous ( int  i) const
inline

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

References PointS3< FT >::cartesian().

63 { return (i == 3) ? FT(1) : cartesian(i); }
blockLoc i
Definition: read.cpp:79
const FT & cartesian(int i) const

Here is the call graph for this function:

FT homogeneous ( int  i) const

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

References CGAL_kernel_precondition.

243 {
244  CGAL_kernel_precondition((i>=0) && (i<=3));
245  return (i<3) ? cartesian(i) : FT(1);
246 }
blockLoc i
Definition: read.cpp:79
const FT & cartesian(int i) const
#define CGAL_kernel_precondition(EX)
FT hw ( ) const
inline

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

62 { return FT(1); }
FT hw ( ) const
inline

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

238 { return FT(1); }
FT hx ( ) const
inline

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

References PointS3< FT >::x().

59 { return x(); }

Here is the call graph for this function:

const FT & hx ( ) const
inline
FT hy ( ) const
inline

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

References PointS3< FT >::y().

60 { return y(); }

Here is the call graph for this function:

const FT & hy ( ) const
inline
FT hz ( ) const
inline

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

References PointS3< FT >::z().

61 { return z(); }

Here is the call graph for this function:

const FT & hz ( ) const
inline
int id ( ) const
inline

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

57 { return (int)this; }
bool operator!= ( const PointS3< FT > &  p) const
inline

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

162 { return !(*this == p); }
Self& operator+= ( const Vector v)
inline

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

References PointS3< FT >::_x, PointS3< FT >::_y, PointS3< FT >::_z, VectorS3< FT >::x(), VectorS3< FT >::y(), and VectorS3< FT >::z().

89  {
90  _x += v.x(); _y+=v.y(); _z+=v.z();
91  return *this;
92  }
*********************************************************************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

Here is the call graph for this function:

Self& operator-= ( const Vector v)
inline

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

References PointS3< FT >::_x, PointS3< FT >::_y, PointS3< FT >::_z, VectorS3< FT >::x(), VectorS3< FT >::y(), and VectorS3< FT >::z().

93  {
94  _x -= v.x(); _y-=v.y(); _z-=v.z();
95  return *this;
96  }
*********************************************************************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

Here is the call graph for this function:

bool operator< ( const Self p) const
inline

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

References lexicographically_xyz_smaller().

55  { return lexicographically_xyz_smaller(*this, p); }
bool lexicographically_xyz_smaller(const PointS3< FT > &p, const PointS3< FT > &q)

Here is the call graph for this function:

Self& operator= ( const Self p)
inline
bool operator== ( const Self p) const
inline

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

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

51  { return x()==p.x() && y()==p.y() && z()==p.z(); }

Here is the call graph for this function:

bool operator== ( const Origin ) const
inline

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

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

53  { return x()==FT(0) && y()==FT(0) && z()==FT(0); }

Here is the call graph for this function:

bool operator== ( const PointS3< FT > &  p) const
inline

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

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

156 { return (x() == p.x()) && (y() == p.y()) && (z() == p.z()); }

Here is the call graph for this function:

FT& operator[] ( int  i)
inline

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

References PointS3< FT >::cartesian().

84 { return cartesian(i); }
blockLoc i
Definition: read.cpp:79
const FT & cartesian(int i) const

Here is the call graph for this function:

const FT& operator[] ( int  i) const
inline

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

References PointS3< FT >::cartesian().

85 { return cartesian(i); }
blockLoc i
Definition: read.cpp:79
const FT & cartesian(int i) const

Here is the call graph for this function:

const FT & operator[] ( int  i) const
inline

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

208 {
209  return cartesian(i);
210 }
blockLoc i
Definition: read.cpp:79
const FT & cartesian(int i) const
Self transform ( const Aff_transformation t) const
inline

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

References Aff_transformationS3< FT >::transform().

100  { return t.transform(*this); }

Here is the call graph for this function:

PointS3< FT > transform ( const Aff_transformationS3< FT > &  t) const
inline

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

References Aff_transformationS3< FT >::transform().

297 { return t.transform(*this); }
PointS3< FT > transform(const PointS3< FT > &p) const

Here is the call graph for this function:

const FT& x ( ) const
inline

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

References PointS3< FT >::_x.

FT& x ( )
inline

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

References PointS3< FT >::_x.

const FT& y ( ) const
inline

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

References PointS3< FT >::_y.

FT& y ( )
inline

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

References PointS3< FT >::_y.

const FT& z ( ) const
inline

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

References PointS3< FT >::_z.

FT& z ( )
inline

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

References PointS3< FT >::_z.

Friends And Related Function Documentation

CGAL_FRIEND_INLINE PointS3<FT> operator+CGAL_NULL_TMPL_ARGS ( const Origin o,
const VectorS3< FT > &  v 
)
friend
CGAL_FRIEND_INLINE PointS3<FT> operator-CGAL_NULL_TMPL_ARGS ( const Origin o,
const VectorS3< FT > &  v 
)
friend

Member Data Documentation

FT e0
FT e1
FT e2

The documentation for this class was generated from the following files: