Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java 3D > Re: Points to i...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 744 of 837
Post > Topic >>

Re: Points to intervale [-1,1]

by Tim Hemig <tim.hemig@[EMAIL PROTECTED] > Apr 10, 2007 at 05:08 PM

Misterysword@[EMAIL PROTECTED]
 wrote:

> Hi!! I have got points like this (in a file): X=2,923, Y=-0,232,
> Z=7,890.
> 
> In Java 3D, points must be between -1 and 1 (in a intervalo [-1,1]).
> How do you change this points to intervale [-1,1] ????

I think you have to figure out, what dimensions your points have, so what
is
your maximum in each dimension. After that you can normalize (word
correct?) the point into the intervall of [-1,1] where 1 (-1) is the
relative maximum.
depends also on the position of your figure. if it should be shown in
center
with best fit, you can take the one biggest absolute value of x,y or z and
divide all coordinates with that scalar.

Greetings
  Tim
 




 3 Posts in Topic:
Points to intervale [-1,1]
Misterysword@[EMAIL PROTE  2007-04-08 10:47:39 
Re: Points to intervale [-1,1]
Tim Hemig <tim.hemig@[  2007-04-10 17:08:58 
Re: Points to intervale [-1,1]
Misterysword@[EMAIL PROTE  2007-04-12 03:56:26 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 2:46:14 CDT 2008.