Skip to main content
gamedev.net
🔒 Locked

normal of implicit function

Started by laeuchli 3 replies 2.4k views
Original Post
laeuchli
laeuchli
Dear all, I have an implict function F(x,y,z)=0 which I'd like to find a normal to. Happily, mathworld has the defintion at http://mathworld.wolfram.com/NormalVector.html <img>http://mathworld.wolfram.com/nimg1936.gif However, I don't fully understand the meaning of the equation. In paticular, how you write each component of the vector. Do they mean: n.x=(Df/dx)/sqrt(...) n.y=(df/dy)/sqrt(...) or something else? Thanks, Jesse
Motorherp
Motorherp
I think what they mean is, given F(x,y,z) is a function of x y and z, then Fx is the partial derivative of F(x,y,z) with respect to x.

They kind of say it at the top using lower case f's, although I agree its not very clear.
[size="1"] [size="4"]:: SHMUP-DEV ::
VolkerG
VolkerG
The normal vector for f(x,y,z)=0 is given by n=grad f(x,y,z). Or in other words:
nx=d/dx f(x,y,z),...
See also Gradient
Atheist
Atheist
... because the gradient (d/dx, d/dy, d/dz)F gives you the direction where F raises most and since your surface is defined by "points where F doesn´t change" that´s perpendicular (losely speaking, but maybe helping to understand it).
laeuchli
laeuchli
Thanks all.
Jesse

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.