droid.geom.Point.setLength implementation is wrong
GoogleCodeExporter opened this issue · 1 comments
GoogleCodeExporter commented
The implementation of droid.geom.Point.setLength is wrong because of 2 issues:
- it doesn't use length parameter
- it uses getAngleByDegrees eventhough function polar will use the parameter
for sin and cos (which expect the value in radians)
Attached is (trivial) patch.
NOTE: probably the same issue is in interpolate function, but as I did test
just setLength I didn't include it in the patch
Original issue reported on code.google.com by vladmiha...@gmail.com
on 10 Jul 2010 at 11:40
Attachments:
GoogleCodeExporter commented
fixed in revision 42
Original comment by mj.mendo...@gmail.com
on 11 Apr 2012 at 6:47
- Changed state: Fixed