POV-Ray : Newsgroups : povray.general : Algebra in Pov-Ray : Algebra in Pov-Ray Server Time
31 Jul 2024 22:13:07 EDT (-0400)
  Algebra in Pov-Ray  
From: Nekar
Date: 27 Jul 2006 07:35:35
Message: <44c8a507@news.povray.org>
How can i do this in Pov?

A)  x=2*y + 1
B) y= x-1

...substitute y's values
x=(2*(x-1))+1
x=(2*x) - 2 + 1
x=(2*x) -1
x-(2*x)=-1
-x=-1
x=1

.. and vice-versa
y=(2*y)+1-1
y=(2*y)
y-(2*y)=0
-y=0
y=0

Is this possible with Pov?

Can it be taken further to stuff like

y=(x*x*x) - (z*z) + 3

... etc


It could be very usefull for checking intersection of objects imo


-- 
-Nekar Xenos
"The truth is out there"


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.