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

#include <DirectionS3.h>

Public Member Functions

 DirectionS3 ()
 
 DirectionS3 (const VectorS3< FT > &v)
 
 DirectionS3 (const FT &x, const FT &y, const FT &z)
 
bool operator== (const DirectionS3< FT > &d) const
 
bool operator!= (const DirectionS3< FT > &d) const
 
VectorS3< FT > to_vector () const
 
VectorS3< FT > vector () const
 
DirectionS3 transform (const Aff_transformationS3< FT > &t) const
 
DirectionS3 operator- () const
 
const FT & delta (int i) const
 
const FT & dx () const
 
const FT & dy () const
 
const FT & dz () const
 
const FT & hdx () const
 
const FT & hdy () const
 
const FT & hdz () const
 
FT hw () const
 

Public Attributes

FT e0
 
FT e1
 
FT e2
 

Detailed Description

template<class FT>
class DirectionS3< FT >

Definition at line 59 of file DirectionS3.h.

Constructor & Destructor Documentation

DirectionS3 ( )
inline

Definition at line 62 of file DirectionS3.h.

62 {}
DirectionS3 ( const FT &  x,
const FT &  y,
const FT &  z 
)
inline

Definition at line 64 of file DirectionS3.h.

65  : e0(x), e1(y), e2(z) {}
void int int REAL REAL * y
Definition: read.cpp:74
void int int int REAL REAL REAL * z
Definition: write.cpp:76
void int int REAL * x
Definition: read.cpp:74

Member Function Documentation

const FT & delta ( int  i) const

Definition at line 144 of file DirectionS3.h.

References CGAL_kernel_precondition, dx, and dy.

145 {
146  CGAL_kernel_precondition( i >= 0 && i <= 2 );
147  return (i==0) ? dx() :
148  (i==1) ? dy() : dz() ;
149 }
const FT & dx() const
Definition: DirectionS3.h:155
const FT & dz() const
Definition: DirectionS3.h:169
const FT & dy() const
Definition: DirectionS3.h:162
blockLoc i
Definition: read.cpp:79
#define CGAL_kernel_precondition(EX)
const FT & dx ( ) const
inline

Definition at line 155 of file DirectionS3.h.

Referenced by DirectionS3< FT >::operator==(), and PlaneS3< FT >::PlaneS3().

156 { return e0; }

Here is the caller graph for this function:

const FT & dy ( ) const
inline

Definition at line 162 of file DirectionS3.h.

Referenced by DirectionS3< FT >::operator==(), and PlaneS3< FT >::PlaneS3().

163 { return e1; }

Here is the caller graph for this function:

const FT & dz ( ) const
inline

Definition at line 169 of file DirectionS3.h.

Referenced by DirectionS3< FT >::operator==(), and PlaneS3< FT >::PlaneS3().

170 { return e2; }

Here is the caller graph for this function:

const FT & hdx ( ) const
inline

Definition at line 175 of file DirectionS3.h.

176 { return e0; }
const FT & hdy ( ) const
inline

Definition at line 182 of file DirectionS3.h.

183 { return e1; }
const FT & hdz ( ) const
inline

Definition at line 189 of file DirectionS3.h.

190 { return e2; }
FT hw ( ) const
inline

Definition at line 195 of file DirectionS3.h.

196 { return FT(1); }
bool operator!= ( const DirectionS3< FT > &  d) const
inline

Definition at line 118 of file DirectionS3.h.

References d.

119 { return !(*this == d); }
const NT & d
DirectionS3< FT > operator- ( ) const
inline

Definition at line 138 of file DirectionS3.h.

References dx, and dy.

139 { return DirectionS3<FT>(-dx(), -dy(), -dz()); }
const FT & dx() const
Definition: DirectionS3.h:155
const FT & dz() const
Definition: DirectionS3.h:169
const FT & dy() const
Definition: DirectionS3.h:162
bool operator== ( const DirectionS3< FT > &  d) const

Definition at line 105 of file DirectionS3.h.

References CGAL_NTS, DirectionS3< FT >::dx(), dx, DirectionS3< FT >::dy(), dy, DirectionS3< FT >::dz(), and sign().

106 {
107  return ( dx()*d.dy() == dy()*d.dx() )
108  &&( dx()*d.dz() == dz()*d.dx() )
109  &&( dy()*d.dz() == dz()*d.dy() )
110  &&( CGAL_NTS sign( dx() ) == CGAL_NTS sign( d.dx() ) )
111  &&( CGAL_NTS sign( dy() ) == CGAL_NTS sign( d.dy() ) )
112  &&( CGAL_NTS sign( dz() ) == CGAL_NTS sign( d.dz() ) );
113 }
const FT & dx() const
Definition: DirectionS3.h:155
static SURF_BEGIN_NAMESPACE double sign(double x)
const FT & dz() const
Definition: DirectionS3.h:169
const FT & dy() const
Definition: DirectionS3.h:162
#define CGAL_NTS

Here is the call graph for this function:

VectorS3< FT > to_vector ( ) const
inline

Definition at line 124 of file DirectionS3.h.

Referenced by DirectionS3< FT >::vector().

125 { return VectorS3<FT>(*this); }

Here is the caller graph for this function:

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

Definition at line 131 of file DirectionS3.h.

References Aff_transformationS3< FT >::transform().

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

Here is the call graph for this function:

VectorS3<FT> vector ( ) const
inline

Definition at line 71 of file DirectionS3.h.

References DirectionS3< FT >::to_vector().

Referenced by LineS3< FT >::LineS3(), RayS3< FT >::RayS3(), and Aff_transformation_repS3< FT >::transform().

71 { return to_vector(); }
VectorS3< FT > to_vector() const
Definition: DirectionS3.h:124

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

FT e0

Definition at line 90 of file DirectionS3.h.

Referenced by VectorS3< FT >::hx(), VectorS3< FT >::VectorS3(), and VectorS3< FT >::x().

FT e1

Definition at line 91 of file DirectionS3.h.

Referenced by VectorS3< FT >::hy(), VectorS3< FT >::VectorS3(), and VectorS3< FT >::y().

FT e2

Definition at line 92 of file DirectionS3.h.

Referenced by VectorS3< FT >::hz(), VectorS3< FT >::VectorS3(), and VectorS3< FT >::z().


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