I have a java method that returns Point2D.double and Android’s closest class to this is PointF. The issue is that PointF returns float rather than double. Is there a way to override PointF so that it is double rather than float?
I have a java method that returns Point2D.double and Android’s closest class to this
Share
Why dont you just convert your doubles to floats then use PointF, you could do that with a simple cast, unless you need to keep the data as doubles for some other purpose, if thats the case you could try extending the PointF class as below, it will be slower than just using PointF due to all the casting and manipulating of the doubles to floats etc but so long as your not calling it too often it should be ok!