static keyword only in declaration not in implementation
This commit is contained in:
parent
73751c6e76
commit
9aa38646ff
|
@ -25,6 +25,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.2 2006/07/10 10:38:16 turini
|
||||||
|
minor changes in SphereOfTetra()
|
||||||
|
|
||||||
Revision 1.1 2006/07/06 12:37:18 ganovelli
|
Revision 1.1 2006/07/06 12:37:18 ganovelli
|
||||||
draft version. For the triangle is not tehe smallest enclosing sphere and for the set of spheres works only for two spheres
|
draft version. For the triangle is not tehe smallest enclosing sphere and for the set of spheres works only for two spheres
|
||||||
|
|
||||||
|
@ -61,18 +64,18 @@ struct SmallestEnclosing {
|
||||||
|
|
||||||
template <class TriangleType>
|
template <class TriangleType>
|
||||||
Sphere3<typename TriangleType::ScalarType>
|
Sphere3<typename TriangleType::ScalarType>
|
||||||
static SmallestEnclosing::SphereOfTriangle(const TriangleType & t){
|
SmallestEnclosing::SphereOfTriangle(const TriangleType & t){
|
||||||
return Sphere3<typename TriangleType::ScalarType>(t.Barycenter(),(t.Barycenter()-t.cP(0)).Norm() );
|
return Sphere3<typename TriangleType::ScalarType>(t.Barycenter(),(t.Barycenter()-t.cP(0)).Norm() );
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class TetraType>
|
template <class TetraType>
|
||||||
Sphere3<typename TetraType::ScalarType>
|
Sphere3<typename TetraType::ScalarType>
|
||||||
static SmallestEnclosing::SphereOfTetra(const TetraType & t){
|
SmallestEnclosing::SphereOfTetra(const TetraType & t){
|
||||||
return Sphere3<typename TetraType::ScalarType>( t.Barycenter(),( t.Barycenter() - t.cP(0) ).Norm() );
|
return Sphere3<typename TetraType::ScalarType>( t.Barycenter(),( t.Barycenter() - t.cP(0) ).Norm() );
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class SphereContType>
|
template <class SphereContType>
|
||||||
static typename SphereContType::value_type
|
typename SphereContType::value_type
|
||||||
SmallestEnclosing::
|
SmallestEnclosing::
|
||||||
SphereOfSpheres( const SphereContType & spheres)
|
SphereOfSpheres( const SphereContType & spheres)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue