Check out java.lang.Math for abs() and atan() methods. On Wed, Sep 15, 2010 at 12:22 PM, Pedro Teixeira <[email protected]> wrote: > Hi, > > I'm having problems with JAva and trigonometry to calculate a > direction from a point to a certain point... > > I want to translate this equation to Java-wise: > > tg^-1 = |value1-value2| / |value3-value4| > > And I'd like the result in degrees.. how can I do this? any ideia? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en >
-- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

