- nGradient = (
- (nRadius -
- (wxInt32)sqrt(
- pow(x - cx - nCircleOffX, 2) +
- pow(y - cy - nCircleOffY, 2)
- )
- ) * 100
- ) / nRadius;
+ wxInt32 nGradient = ((nRadius -
+ (wxInt32)sqrt(
+ pow((double)(x - cx - nCircleOffX), 2) +
+ pow((double)(y - cy - nCircleOffY), 2)
+ )) * 100) / nRadius;