forked from organicmaps/organicmaps
[codereview] my::Abs
This commit is contained in:
parent
c9ca8f7208
commit
4195d2f916
1 changed files with 2 additions and 2 deletions
|
@ -129,11 +129,11 @@ namespace df
|
|||
const bool clockWise = cross < 0;
|
||||
const float directionFix = ( clockWise ? +1 : -1 );
|
||||
|
||||
const float absAngle = fabs(joinAngle);
|
||||
const float absAngle = my::Abs(joinAngle);
|
||||
if (absAngle > MIN_JOIN_ANGLE && absAngle < MAX_JOIN_ANGLE)
|
||||
{
|
||||
const float joinHeight = (m_params.m_join == MiterJoin)
|
||||
? fabs(hw / cos(joinAngle/2))
|
||||
? my::Abs(hw / cos(joinAngle/2))
|
||||
: 2*hw; // ensure we have enough space for sector
|
||||
|
||||
// Add join triangles
|
||||
|
|
Loading…
Add table
Reference in a new issue