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

#include <Aff_transformationS2.h>

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

Public Member Functions

 Aff_transformationS2 ()
 
 Aff_transformationS2 (const Identity_transformation &)
 
 Aff_transformationS2 (const Aff_transformationS2< FT > &t)
 
 Aff_transformationS2 (const Translation, const VectorS2< FT > &v)
 
 Aff_transformationS2 (const Rotation, const DirectionS2< FT > &d, const FT &num, const FT &den=FT(1))
 
 Aff_transformationS2 (const Rotation, const FT &sine_rho, const FT &cosine_rho, const FT &hw=FT(1))
 
 Aff_transformationS2 (const Scaling, const FT &s, const FT &w=FT(1))
 
 Aff_transformationS2 (const FT &m11, const FT &m12, const FT &m13, const FT &m21, const FT &m22, const FT &m23, const FT &w=FT(1))
 
 Aff_transformationS2 (const FT &m11, const FT &m12, const FT &m21, const FT &m22, const FT &w=FT(1))
 
 ~Aff_transformationS2 ()
 
PointS2< FT > transform (const PointS2< FT > &p) const
 
PointS2< FT > operator() (const PointS2< FT > &p) const
 
VectorS2< FT > transform (const VectorS2< FT > &p) const
 
VectorS2< FT > operator() (const VectorS2< FT > &p) const
 
DirectionS2< FT > transform (const DirectionS2< FT > &d) const
 
DirectionS2< FT > operator() (const DirectionS2< FT > &d) const
 
LineS2< FT > transform (const LineS2< FT > &l) const
 
LineS2< FT > operator() (const LineS2< FT > &l) const
 
Aff_transformationS2< FT > inverse () const
 
bool is_even () const
 
bool is_odd () const
 
FT cartesian (int i, int j) const
 
FT homogeneous (int i, int j) const
 
FT m (int i, int j) const
 
FT hm (int i, int j) const
 
Aff_transformationS2< FT > operator* (const Aff_transformationS2< FT > &t) const
 
std::ostream & print (std::ostream &os) const
 

Private Member Functions

Aff_transformation_rep_baseS2
< FT > * 
ptr () const
 

Detailed Description

template<class FT>
class Aff_transformationS2< FT >

Definition at line 690 of file Aff_transformationS2.h.

Constructor & Destructor Documentation

Definition at line 807 of file Aff_transformationS2.h.

808 { PTR = new Aff_transformation_repS2<FT>(FT(1), FT(0), FT(0), FT(1)); }

Definition at line 811 of file Aff_transformationS2.h.

812 { PTR = new Aff_transformation_repS2<FT>(FT(1), FT(0), FT(0), FT(1)); }

Definition at line 815 of file Aff_transformationS2.h.

816  : Handle(t)
817 {}
CGAL_END_NAMESPACE CGAL_BEGIN_NAMESPACE typedef Leda_like_handle Handle
Definition: Handle.h:137
Aff_transformationS2 ( const Translation  ,
const VectorS2< FT > &  v 
)

Definition at line 834 of file Aff_transformationS2.h.

References v.

836 { PTR = new Translation_repS2<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
Aff_transformationS2 ( const Rotation  ,
const DirectionS2< FT > &  d,
const FT &  num,
const FT &  den = FT(1) 
)

Definition at line 839 of file Aff_transformationS2.h.

References d, and den.

843 { PTR = new Rotation_repS2<FT>(d, num, den); }
const NT & d
NT & den
Aff_transformationS2 ( const Rotation  ,
const FT &  sine_rho,
const FT &  cosine_rho,
const FT &  hw = FT(1) 
)

Definition at line 847 of file Aff_transformationS2.h.

851 {
852  if (w != FT(1))
853  PTR = new Rotation_repS2<FT>(sine/w, cosine/w);
854  else
855  PTR = new Rotation_repS2<FT>(sine, cosine);
856 }
Aff_transformationS2 ( const Scaling  ,
const FT &  s,
const FT &  w = FT(1) 
)

Definition at line 859 of file Aff_transformationS2.h.

References s.

862 {
863  if (w != FT(1))
864  PTR = new Scaling_repS2<FT>(s/w);
865  else
866  PTR = new Scaling_repS2<FT>(s);
867 }
double s
Definition: blastest.C:80
Aff_transformationS2 ( const FT &  m11,
const FT &  m12,
const FT &  m13,
const FT &  m21,
const FT &  m22,
const FT &  m23,
const FT &  w = FT(1) 
)

Definition at line 872 of file Aff_transformationS2.h.

876 {
877  if (w != FT(1))
878  PTR = new Aff_transformation_repS2<FT>(m11/w, m12/w, m13/w,
879  m21/w, m22/w, m23/w);
880  else
881  PTR = new Aff_transformation_repS2<FT>(m11, m12, m13,
882  m21, m22, m23);
883 }
Aff_transformationS2 ( const FT &  m11,
const FT &  m12,
const FT &  m21,
const FT &  m22,
const FT &  w = FT(1) 
)

Definition at line 821 of file Aff_transformationS2.h.

826 {
827  if (w != FT(1))
828  PTR = new Aff_transformation_repS2<FT>(m11/w, m12/w, m21/w, m22/w);
829  else
830  PTR = new Aff_transformation_repS2<FT>(m11, m12, m21, m22);
831 }

Definition at line 886 of file Aff_transformationS2.h.

887 {}

Member Function Documentation

FT cartesian ( int  i,
int  j 
) const
inline

Definition at line 755 of file Aff_transformationS2.h.

References Aff_transformationS2< FT >::ptr().

Referenced by Aff_transformationS2< FT >::hm(), Aff_transformationS2< FT >::homogeneous(), and Aff_transformationS2< FT >::m().

755 { return ptr()->cartesian(i,j); }
blockLoc i
Definition: read.cpp:79
Aff_transformation_rep_baseS2< FT > * ptr() const
j indices j
Definition: Indexing.h:6

Here is the call graph for this function:

Here is the caller graph for this function:

FT hm ( int  i,
int  j 
) const
inline

Definition at line 758 of file Aff_transformationS2.h.

References Aff_transformationS2< FT >::cartesian().

758 { return cartesian(i,j); }
blockLoc i
Definition: read.cpp:79
FT cartesian(int i, int j) const
j indices j
Definition: Indexing.h:6

Here is the call graph for this function:

FT homogeneous ( int  i,
int  j 
) const
inline

Definition at line 756 of file Aff_transformationS2.h.

References Aff_transformationS2< FT >::cartesian().

756 { return cartesian(i,j); }
blockLoc i
Definition: read.cpp:79
FT cartesian(int i, int j) const
j indices j
Definition: Indexing.h:6

Here is the call graph for this function:

Aff_transformationS2< FT > inverse ( ) const

Definition at line 942 of file Aff_transformationS2.h.

943 {
944  return ptr()->inverse();
945 }
Aff_transformation_rep_baseS2< FT > * ptr() const
bool is_even ( ) const
inline

Definition at line 752 of file Aff_transformationS2.h.

References Aff_transformationS2< FT >::ptr().

752 { return ptr()->is_even(); }
Aff_transformation_rep_baseS2< FT > * ptr() const

Here is the call graph for this function:

bool is_odd ( ) const

Definition at line 950 of file Aff_transformationS2.h.

951 {
952  return ! (ptr()->is_even());
953 }
Aff_transformation_rep_baseS2< FT > * ptr() const
FT m ( int  i,
int  j 
) const
inline

Definition at line 757 of file Aff_transformationS2.h.

References Aff_transformationS2< FT >::cartesian().

757 { return cartesian(i,j); }
blockLoc i
Definition: read.cpp:79
FT cartesian(int i, int j) const
j indices j
Definition: Indexing.h:6

Here is the call graph for this function:

PointS2< FT > operator() ( const PointS2< FT > &  p) const
inline

Definition at line 898 of file Aff_transformationS2.h.

899 { return transform(p); }
PointS2< FT > transform(const PointS2< FT > &p) const
VectorS2< FT > operator() ( const VectorS2< FT > &  p) const
inline

Definition at line 909 of file Aff_transformationS2.h.

910 { return transform(p); }
PointS2< FT > transform(const PointS2< FT > &p) const
DirectionS2< FT > operator() ( const DirectionS2< FT > &  d) const
inline

Definition at line 920 of file Aff_transformationS2.h.

921 { return transform(d); }
PointS2< FT > transform(const PointS2< FT > &p) const
LineS2< FT > operator() ( const LineS2< FT > &  l) const
inline

Definition at line 936 of file Aff_transformationS2.h.

937 { return transform(l); }
PointS2< FT > transform(const PointS2< FT > &p) const
Aff_transformationS2<FT> operator* ( const Aff_transformationS2< FT > &  t) const
inline

Definition at line 787 of file Aff_transformationS2.h.

References Aff_transformationS2< FT >::ptr().

788 {
789  return (*ptr()) * (*t.ptr());
790 }
Aff_transformation_rep_baseS2< FT > * ptr() const

Here is the call graph for this function:

std::ostream & print ( std::ostream &  os) const

Definition at line 958 of file Aff_transformationS2.h.

Referenced by operator<<().

959 {
960  ptr()->print(os);
961  return os;
962 }
Aff_transformation_rep_baseS2< FT > * ptr() const

Here is the caller graph for this function:

PointS2< FT > transform ( const PointS2< FT > &  p) const

Definition at line 892 of file Aff_transformationS2.h.

Referenced by DirectionS2< FT >::transform(), PointS2< FT >::transform(), RayS2< FT >::transform(), SegmentS2< FT >::transform(), VectorS2< FT >::transform(), and LineS2< FT >::transform().

893 { return ptr()->transform(p); }
Aff_transformation_rep_baseS2< FT > * ptr() const

Here is the caller graph for this function:

VectorS2< FT > transform ( const VectorS2< FT > &  p) const

Definition at line 903 of file Aff_transformationS2.h.

904 { return ptr()->transform(p); }
Aff_transformation_rep_baseS2< FT > * ptr() const
DirectionS2< FT > transform ( const DirectionS2< FT > &  d) const

Definition at line 914 of file Aff_transformationS2.h.

915 { return ptr()->transform(d); }
Aff_transformation_rep_baseS2< FT > * ptr() const
LineS2< FT > transform ( const LineS2< FT > &  l) const
inline

Definition at line 927 of file Aff_transformationS2.h.

References LineS2< FT >::direction(), and LineS2< FT >::point().

928 {
929  return LineS2<FT>(ptr()->transform(l.point(0)),
930  ptr()->transform(l.direction()));
931 }
DirectionS2< FT > direction() const
Definition: LineS2.h:270
PointS2< FT > point(int i) const
Definition: LineS2.h:231
Aff_transformation_rep_baseS2< FT > * ptr() const
Definition: LineS2.h:62

Here is the call graph for this function:


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