extent: aspect should return float
This commit is contained in:
parent
7d5eac3f2f
commit
9657c04eed
@ -68,9 +68,11 @@ extent<T>::area (void) const
|
|||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
template <typename T>
|
template <typename T>
|
||||||
double
|
float
|
||||||
extent<T>::aspect (void) const
|
extent<T>::aspect (void) const
|
||||||
{ return static_cast<double> (w) / h; }
|
{
|
||||||
|
return static_cast<float> (w) / static_cast<float> (h);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -37,7 +37,7 @@ namespace util {
|
|||||||
T area (void) const;
|
T area (void) const;
|
||||||
T diameter (void) const;
|
T diameter (void) const;
|
||||||
|
|
||||||
double aspect (void) const;
|
float aspect (void) const;
|
||||||
|
|
||||||
bool empty (void) const;
|
bool empty (void) const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user