Conversion from radian to degree does not work
SBQuantity::radian radianValue(1.5); SBQuantity::degree degreeValue = radianValue; double val = degreeValue.getValue();
I've got val equal to 1.5 !!!
Perhaps it is a bug ?
DmitriyMarin last edited by
Actually, SBQuantity::radian, SBQuantity::degree, and SBQuantity::steradian are internally the same - they are SBQuantity::dimensionless. Therefore, there is no possibility to do a conversion like that, you need to convert radians into degrees yourself.
Stephane last edited by
Note that there are two ratios provided with the SDK:
SBQuantity::radian radianValue(1.5); SBQuantity::degree degreeValue = radianValue * SBConstant::RadToDeg;