[codereview] my::Abs

This commit is contained in:
Dmitry Kunin 2014-02-10 15:29:57 +03:00 committed by Alex Zolotarev
parent c9ca8f7208
commit 4195d2f916

View file

@ -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