POV-Ray : Newsgroups : povray.general : Help with parabola : Re: Help with parabola Server Time
16 Nov 2024 09:21:13 EST (-0500)
  Re: Help with parabola  
From: Nathan Kopp
Date: 5 Sep 1998 14:25:13
Message: <35F1731F.7B289DDF@ltu.edu>
The slope (i.e. derivative, gradient) of a parabola at any point is
dy
-- = 2x
dx

For example, the slope at x=1 is 2*1=2, while the slope at x=2 is 2*2=4.

To find the angle that you need to rotate, plug the slope into the inverse
tangent function (which is called "atan2" in POV-Ray).

-Nathan

mick wrote:
> 
> Help!
> 
> I have drawn a parabolic shape using the formula y = X^2
> 
> The parabola is composed of spheres scaled into ellipses with the longside
> in the y direction
> 
> I have been trying to rotate each ellipse so the the length is pointing in
> the direction of the parabola
> 
> I need to calculate the gradient at each point. I'm no mathmatician so
> Please help


Post a reply to this message

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