Saturday, July 16, 2011

Re: [android-developers] Point2D.distance?

A search for Point2D in the SDK docs didn't turn up any classes that are
supported by Android...

.... which is not surprising, because Point2D is an AWT class, and
Android has no support for AWT.

FWIW, distance is sqrt (dx^2 + dy^2), I assume that's common knowledge.

If you have lotsa code that has references to Point2D, you can just
declare your own namesake class.

-- Kostya

17.07.2011 0:45, bob пишет:
> I want to use the Point2D.distance function on Android. Anyone know
> why this doesn't work?
>

--
Kostya Vasilyev

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment