extent: aspect should return float

This commit is contained in:
Danny Robson 2014-12-19 18:29:12 +11:00
parent 7d5eac3f2f
commit 9657c04eed
2 changed files with 5 additions and 3 deletions

View File

@ -68,9 +68,11 @@ extent<T>::area (void) const
//-----------------------------------------------------------------------------
template <typename T>
double
float
extent<T>::aspect (void) const
{ return static_cast<double> (w) / h; }
{
return static_cast<float> (w) / static_cast<float> (h);
}
//-----------------------------------------------------------------------------

View File

@ -37,7 +37,7 @@ namespace util {
T area (void) const;
T diameter (void) const;
double aspect (void) const;
float aspect (void) const;
bool empty (void) const;