Hello there!
I'll just cut straight to the problem.
I need a function f(X, Y) which takes two inputs ranging from -1 to 1.
X and Y describes a circle.
The function should give the following results:
f( 0.0, -1.0) = 0
f( 0.5, -0.5) = 0.25
f( 1.0, 0.0) = 0.5
f( 0.5, 0.5) = 0.75
f( 0.0, 1.0) = 1
f(-0.5, 0.5) = 1.25
f(-1.0, 0.0) = 1.5
f(-0.5, -0.5) = 1.75
Any and all help is appreciated.
(I apologize if I've posted in the wrong forum)
// Myx


LinkBack URL
About LinkBacks


