support_function< K > Class Template Reference

#include <qsc_approximation_fcts.hpp>

List of all members.

Public Member Functions


Detailed Description

template<class K>
class mmx::shape::support_function< K >

Definition at line 1011 of file qsc_approximation_fcts.hpp.


Constructor & Destructor Documentation

support_function (  )  [inline]

Definition at line 1014 of file qsc_approximation_fcts.hpp.

01014 {} ;

support_function ( const point< K > &  a,
const point< K > &  b,
const point< K > &  c 
) [inline]

Definition at line 1023 of file qsc_approximation_fcts.hpp.

01024 {
01025   Va=a-2*b+c;
01026   Vb=2*(b-a);
01027   Vc=a;
01028 }


Member Function Documentation

K eval ( const point< K > &  n  )  [inline]

Definition at line 1031 of file qsc_approximation_fcts.hpp.

References mmx::shape::dot(), and mmx::pow().

Referenced by quad_supp_func< K >::quad_supp_func().

01032 {
01033   return -std::pow(dot(n,Vb),2)/(4*dot(n,Va))+dot(n,Vc);
01034 }

K eval_diff ( const point< K > &  n  )  [inline]

Definition at line 1037 of file qsc_approximation_fcts.hpp.

References mmx::shape::dot(), and mmx::shape::orth_vect().

Referenced by quad_supp_func< K >::quad_supp_func().

01038 {
01039   return dot(n,Vb)*
01040     (-dot(n,orth_vect(Va))*dot(n,Vb)+2*dot(n,orth_vect(Vb))*dot(n,Va))/
01041     (4*std::pow(dot(n,Va),2))
01042 -dot(n,orth_vect(Vc));
01043 }


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

Generated on 6 Dec 2012 for shape by  doxygen 1.6.1