At 11:55 PM -0500 2/27/02, Kevin Ballard wrote:
> Rb3DSpace1.camera.Yaw 3.14157
There really should be a built-in pi constant (kPi?) that is a double filled
to max precision.
It's something we've discussed, but it's trickier than it seems
because we don't want to pollute the global namespace more than
absolutely necessary. If we had namespaces, so that you could write
Math.Pi or some such, it'd be an easier call. But we don't yet, and
we don't want to design ourselves into a corner we'll regret later.
So, in my projects I just make a module that contains constants such
as kPi, kPiOver2, etc. But when I post code snippets I don't assume
the user has these, and just throw in a numeric constant (which I see
I didn't get quite right, but close enough for this purpose).
Cheers,
- Joe
--
,------------------------------------------------------------------.
| Joseph J. Strout REAL Software, Inc. |
| joe at realsoftware dot com http://www.realsoftware.com |
`------------------------------------------------------------------'
|