Go to Post Where can I buy the awesomeness that you used on that? Do they sell it at andymark? - HansJ [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 18-02-2010, 21:27
Lord_Jeremy's Avatar
Lord_Jeremy Lord_Jeremy is offline
Lord_Jeremy the Procrastinator
AKA: Jeremy Agostino
FRC #1546 (Chaos Inc.)
Team Role: Electrical
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Baldwin, New York
Posts: 45
Lord_Jeremy is an unknown quantity at this point
Send a message via ICQ to Lord_Jeremy Send a message via AIM to Lord_Jeremy Send a message via MSN to Lord_Jeremy Send a message via Yahoo to Lord_Jeremy
Trig Problem, missing arc functions?

Hey. So I'm in the midst of rewriting my autonomous routines. I'm implementing a navigation system. One of the functions I'm writing needs to find the angle of a right triangle, given the base and height. So I wrote double dAngle = Math.atan( y / x ); Netbeans highlighted this as an error... So then I deleted .atan and reinserted . and let the autocomplete come up. To my surprise, I see no atan or arctan or arcanything in the list of available methods. What the heck? Do we seriously not have inverse trig functions in our incredibly minimalist version of Java? Not having ArrayList was bad enough, but at least I could use Vectors with a million object casts everywhere. I don't even know how I can do what I'm doing without inverse trig. Google searching yields two options: Use a third party library or write my own lookup table-using methods. Have any other teams run into this issue? What are your solutions? Bah, and I was upset I had to write my own nsign...
__________________
Compiling...
Compiling...
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trig functions in C18 3.10 dmlawrence Programming 9 08-02-2008 09:33
Possiblity of using a few trig functions baop858 Programming 4 18-01-2008 23:55
Trig. Functions in EasyC miketwalker FIRST Tech Challenge 5 07-12-2006 23:27
speed of math.h trig functions? Jared Russell Programming 4 07-02-2006 07:13
Return of the Inverse Trig Functions Leo M Programming 3 24-01-2002 08:12


All times are GMT -5. The time now is 09:38.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi