FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Bugs
   Bug Fixes, Implemented Suggestions
(Moderator: fry)
   degrees or radians
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: degrees or radians  (Read 1999 times)
rgovostes'
Guest
Email
degrees or radians
« on: Jan 31st, 2004, 1:03am »

I think it would be handy to allow the user to select computations to be done with either degrees or radians (and optionally, a value of pi, or a number indicating the precision to use). We already have ColorMode() and such, so how hard would it be to add AngleMode(DEGREES) and AngleMode(RADIANS)?
 
fry


WWW
Re: degrees or radians
« Reply #1 on: Feb 3rd, 2004, 12:20am »

seems logical.. we had thought about doing this a while ago, and now i don't recall why we didn't just add it..
 
kevinP

Email
Re: degrees or radians
« Reply #2 on: Feb 3rd, 2004, 12:43am »

on Feb 3rd, 2004, 12:20am, fry wrote:
seems logical.. we had thought about doing this a while ago, and now i don't recall why we didn't just add it..

 
OTOH it forced me to quickly learn some useful math...  
 
-K
 

Kevin Pfeiffer
fry


WWW
Re: degrees or radians
« Reply #3 on: Feb 3rd, 2004, 2:19am »

fwiw, there's also the functions degrees() and radians():
 
http://processing.org/reference/radians_.html
http://processing.org/reference/degrees_.html
 
that can save you from math, though we hate to get in the way of anyone's learning experience.
 
fry


WWW
Re: degrees or radians
« Reply #4 on: Jul 15th, 2004, 6:03pm »

angleMode(DEGREES) and angleMode(RADIANS) addded for megabucket. they'll affect the trig functions like sin() cos(), acos() asin() as well as rotate() and friends.
 
Pages: 1 

« Previous topic | Next topic »