static keyword only in declaration not in implementation

This commit is contained in:
Paolo Cignoni 2006-07-12 12:13:23 +00:00
parent 73751c6e76
commit 9aa38646ff
1 changed files with 6 additions and 3 deletions

View File

@ -25,6 +25,9 @@
History
$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
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>
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() );
}
template <class TetraType>
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() );
}
template <class SphereContType>
static typename SphereContType::value_type
typename SphereContType::value_type
SmallestEnclosing::
SphereOfSpheres( const SphereContType & spheres)
{