Commit 682bf874 authored by Akarsh Simha's avatar Akarsh Simha

Add missing overload for CachingDms::setD()

CCMAIL: mutlaqja@ikarustech.com
parent 594d09ee
......@@ -79,6 +79,18 @@ public:
#endif
}
/**
* @short Overrides dms::setD()
*/
inline void setD( const int &d, const int &m, const int &s, const int &ms=0 ) { dms::setD( d, m, s, ms ); dms::SinCos( m_sin, m_cos );
#ifdef COUNT_DMS_SINCOS_CALLS
cachingdms_delta -= 2;
if( !m_cacheUsed )
++cachingdms_bad_uses;
m_cacheUsed = false;
#endif
}
/**
* @short Sets the angle in hours, supplied as a double
* @note Re-implements dms::setH() with sine/cosine caching
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment