Login  Register

Re: measuring distance along a line at a set angle

Posted by Gabriel Landini on Feb 06, 2009; 8:37am
URL: http://imagej.273.s1.nabble.com/measuring-distance-along-a-line-at-a-set-angle-tp3693828p3693830.html

Hi Jerome,

On Thursday 05 February 2009 23:31:43 you wrote:
> // Fixed Angle Line Tool Macro
> var a=0;
> var pi=3.1415926535;

Just a detail. There is a (perhaps undocumented?) system variable in the macro
language (PI) which stores the value of pi.

You can test this:

write (PI);

Not that is saves any computation time, but it is quite convenient, so one
avoids using different approximation of pi across different procedures.
Cheers,

Gabriel