Steven,

My understanding is that they did the vector math like that for
performance reasons.

The only Java 3D source they provide is for the com.sun stuff (picking,
etc). (And I'm appalled at some of the horrible code I've seen there -
apparently at least one of the developers has no concept at all of
indentation and has code that isn't even inside a method!)

- John Wright
Starfire Research

Steven T. Hatton wrote:
I've already posted my gripe about the Canvas3D stubbornness. Another thing I
find distasteful in the Java3D SDK is the javax.vecmath api.  Why on the
greenswords of Midgard did anybody make all these methods return void? Is
there a pragmatic reason for this? I hate it!  If I could do things like
this:
Vector3d v = new Vector3d();
return v.add(v1,v2);

I would use a good deal less profanity when writing Java3D code.  Perhaps
there is a different paradigm I need to grasp in order to understand the
advantange to doing things this way.

Personally, I would rather the mathematical operations were nondestructive;
that is, they left the operands alone.  My guess is, that is so far out of
the realm of realistic modifications to the api that it's not worth
discussing.

Could the javax.vecmath package be modified to make the operators return the
result, rather than void?

BTW, is the source available somewhere for this stuff?  I fetched the stuff at
j3d.org's cvs, but it looks to be all addon stuff.  I haven't looked really
closely, but all I see is a src/org/... branch in the source tree.

Steven

===========================================================================
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