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

#include <Aff_transformationS3.h>

Inheritance diagram for Translation_repS3< FT >:
Collaboration diagram for Translation_repS3< FT >:

Public Member Functions

 Translation_repS3 ()
 
 Translation_repS3 (const VectorS3< FT > &tv)
 
 ~Translation_repS3 ()
 
PointS3< FT > transform (const PointS3< FT > &p) const
 
VectorS3< FT > transform (const VectorS3< FT > &v) const
 
DirectionS3< FT > transform (const DirectionS3< FT > &d) const
 
Aff_transformationS3< FT > inverse () const
 
Aff_transformationS3< FT > transpose () const
 
Aff_transformationS3< FT > general_form () const
 
virtual bool is_even () const
 
virtual FT cartesian (int i, int j) const
 
std::ostream & print (std::ostream &os) const
 
- Public Member Functions inherited from Aff_transformation_rep_baseS3< FT >
virtual ~Aff_transformation_rep_baseS3 ()
 

Private Attributes

VectorS3< FT > translationvector
 

Friends

std::ostream & operator<< CGAL_NULL_TMPL_ARGS (std::ostream &os, Translation_repS3< FT > &t)
 
Aff_transformationS3< FT > operator*CGAL_NULL_TMPL_ARGS (const Aff_transformationS3< FT > &a, const Aff_transformationS3< FT > &b)
 

Additional Inherited Members

Detailed Description

template<class FT>
class Translation_repS3< FT >

Definition at line 67 of file Aff_transformationS3.h.

Constructor & Destructor Documentation

Translation_repS3 ( )
inline

Definition at line 316 of file Aff_transformationS3.h.

317  {}
Translation_repS3 ( const VectorS3< FT > &  tv)
inline

Definition at line 319 of file Aff_transformationS3.h.

319  :
321  {}
VectorS3< FT > translationvector
~Translation_repS3 ( )
inline

Definition at line 323 of file Aff_transformationS3.h.

324  {}

Member Function Documentation

virtual FT cartesian ( int  i,
int  j 
) const
inlinevirtual

Implements Aff_transformation_rep_baseS3< FT >.

Definition at line 370 of file Aff_transformationS3.h.

References i, and Translation_repS3< FT >::translationvector.

371  {
372  if (j==i) return FT(1);
373  if (j==3) return translationvector[i];
374  return FT(0);
375  }
blockLoc i
Definition: read.cpp:79
j indices j
Definition: Indexing.h:6
VectorS3< FT > translationvector
Aff_transformationS3<FT> general_form ( ) const
inlinevirtual

Implements Aff_transformation_rep_baseS3< FT >.

Definition at line 355 of file Aff_transformationS3.h.

References Translation_repS3< FT >::translationvector.

356  {
357  FT ft0(0), ft1(1);
358 
359  return Aff_transformationS3<FT>(ft1, ft0, ft0, translationvector.x(),
360  ft0, ft1, ft0, translationvector.y(),
361  ft0, ft0, ft1, translationvector.z());
362  }
VectorS3< FT > translationvector
Aff_transformationS3<FT> inverse ( ) const
inlinevirtual
virtual bool is_even ( ) const
inlinevirtual

Implements Aff_transformation_rep_baseS3< FT >.

Definition at line 365 of file Aff_transformationS3.h.

366  {
367  return true;
368  }
std::ostream& print ( std::ostream &  os) const
inlinevirtual

Implements Aff_transformation_rep_baseS3< FT >.

Definition at line 377 of file Aff_transformationS3.h.

References Translation_repS3< FT >::translationvector.

378  {
379  FT ft0(0), ft1(1);
380  os << " "<< ft1 <<' '<< ft0 <<' '<< ft0 <<' '
381  << translationvector.x() << "\n";
382 
383  os << " "<< ft0 <<' '<< ft1 <<' '<< ft0 <<' '
384  << translationvector.y() << "\n";
385 
386  os << " "<< ft0 <<' '<< ft0 <<' '<< ft1 <<' '
387  << translationvector.z() << ")\n";
388 
389  return os;
390  }
VectorS3< FT > translationvector
PointS3<FT> transform ( const PointS3< FT > &  p) const
inlinevirtual

Implements Aff_transformation_rep_baseS3< FT >.

Definition at line 326 of file Aff_transformationS3.h.

References Translation_repS3< FT >::translationvector.

327  {
328  return p + translationvector;
329  }
VectorS3< FT > translationvector
VectorS3<FT> transform ( const VectorS3< FT > &  v) const
inlinevirtual

Implements Aff_transformation_rep_baseS3< FT >.

Definition at line 331 of file Aff_transformationS3.h.

References v.

332  {
333  return v;
334  }
*********************************************************************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
DirectionS3<FT> transform ( const DirectionS3< FT > &  d) const
inlinevirtual

Implements Aff_transformation_rep_baseS3< FT >.

Definition at line 336 of file Aff_transformationS3.h.

References d.

337  {
338  return d;
339  }
const NT & d
Aff_transformationS3<FT> transpose ( ) const
inlinevirtual

Implements Aff_transformation_rep_baseS3< FT >.

Definition at line 346 of file Aff_transformationS3.h.

347  {
348  FT ft0(0), ft1(1);
349 
350  return Aff_transformationS3<FT>(ft1, ft0, ft0, ft0,
351  ft0, ft1, ft0, ft0,
352  ft0, ft0, ft1, ft0);
353  }

Friends And Related Function Documentation

Aff_transformationS3<FT> operator*CGAL_NULL_TMPL_ARGS ( const Aff_transformationS3< FT > &  a,
const Aff_transformationS3< FT > &  b 
)
friend
std::ostream& operator<< CGAL_NULL_TMPL_ARGS ( std::ostream &  os,
Translation_repS3< FT > &  t 
)
friend

Member Data Documentation


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