I suppose if someone wanted to re-write all of J3D they could overload all
the methods dealing with angles and add an int to the arguments, this would
keep existing programs compatible:

someMethod(double radians){....};

someMethod(double radians, int Class.USE_DEGREES){....};

Food for thought anyway  : )

Don

-----Original Message-----
From: Hugh Fisher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 29, 2000 12:04 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Lose the radians


 Thanks to everyone who replied - too many for me to address
 each one individually.

 My reason for writing was that in my J3D programs I find
 myself repeatedly converting between degrees and radians
 for input/output purposes. To me, that is a sign something
 is wrong. Computers should do the repetitive work, not me.

 Although some might not believe it, my maths isn't too bad.
 But a programming language/API is IMHO a notation that should
 be designed for convenience of expression, not necessarily
 the underlying concepts.

 For instance, all of the computers running Java are supposed
 to be using IEEE floating point arithmetic. And the difference
 between floating point representation and "real" real numbers
 can be very important at times. That doesn't mean that Java
 programmers should be forced to write
        float PI = 0x40490FDB
 instead of
        float PI = 3.141593

 Then there are all those unnecessary classes in J3D like
 AxisAngle4 and those unnecessary methods for translating
 and scaling. All you need are matrices, why would anyone
 want all these special cases that obscure the underlying
 beauty of the concept?

 For a more pernicious example, have a look at Chapter 1 of
 "Getting Started with Java 3D" (the PDF tutorial), section
 1.6.1, under Transform3D. There it states that
        45 deg = 0.785
        90 deg = 1.57
       180 deg = 3.14
 Those are wrong by 0.05%. Yes, the tutorial does say that
 they are aproximations, but they are *in the manual* so will
 no doubt be propagated across numerous programs.

 Anyway, you can all relax: the official word from the J3D
 team is that it won't be changed.

        Hugh Fisher

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to