Clarify atan2 overloads
In the C++ standard, this function is only defined for floating point types, and integers cannot be implicitly converted. Using explicit conversions avoids a GCC specific extension to the standard library.
This commit is contained in:
committed by
Chris Pavlina
parent
ef582c07f3
commit
ff4febc7a8
@@ -252,7 +252,7 @@ void DIMENSION::AdjustDimensionDetails( bool aDoNotChangeText )
|
||||
// Calculate dimension value
|
||||
measure = KiROUND( hypot( deltax, deltay ) );
|
||||
|
||||
angle = atan2( deltay, deltax );
|
||||
angle = atan2( (double)deltay, (double)deltax );
|
||||
|
||||
// Calculation of parameters X and Y dimensions of the arrows and lines.
|
||||
hx = hy = ii;
|
||||
|
||||
Reference in New Issue
Block a user