According to the documentation, I can call .TranslateByDegrees on a pointshape object and pass in anything from 0 to 360 for the ‘angleInDegrees’ parameter. However, when I pass in 360, I get the following error:
+ $exception {System.ArgumentOutOfRangeException: The input double value is out of range.
Parameter name: angleInDegrees
at rhQ=.5D0=.Rj4=(Double Rz4=, String SD4=, Double ST4=, ZiI= Sj4=, Double Sz4=, ZiI= TD4=)
at ThinkGeo.MapSuite.Core.PointShape.TranslateByDegreeCore(Double distance, Double angleInDegrees, GeographyUnit shapeUnit, DistanceUnit distanceUnit)
at ThinkGeo.MapSuite.Core.BaseShape.TranslateByDegree(Double distance, Double angleInDegrees)
at Valmont.Wpf.Views.MapView.CalculateCircleAngles(EllipseShape circleShape) in c:\Projects\ValmontMobileApp\Valmont.Wpf\Views\MapView.xaml.cs:line 1091} System.Exception {System.ArgumentOutOfRangeException}
Error using TranslateByDegrees
Hi Scott,
I read the API summary and code, the limit should be (0<= angleInDegrees < 360). So if you want to pass in a value 360, please just pass in 0.
Please let me know where is the documentation, we will correct that, thanks for let us know it.
Regards,
Don
In the tooltip for the method, when i get the the second parameter it says "a number between 0 and 360 degrees"
using 0 works. thanks.
Hi Scott,
Any question please feel free to let us know.
Regards,
Don