| >>I'm looking for a particular parametrical curve who could fit the following
>>scheme: Imagine a unity square defined by the two following points
>>(0,0)-(1,1). For a given value of the parameter (let's say zero), the curve
>>would be the diagonal of the square. When the parameter would augment, it
>>would slowly distord in order to map the upper half border of the square [
>>i.e. defined by (0,0)-(0,1)-(1,1) ]. Ideally, when the parameter is
>>inifinite, the curve would exactly map this contour.
I made a mistake in the previous post.
This is the superellipse function corrected to give a diagonal when n=0
y=(1-(1-x)^(n+1))^(1/(n+1))
This will give you:
y=x when n=0
and what you want when n=infinite (or almost)
BTW the superellipse formula is:
abs(x/a)^n+abs(y/b)^n=1 (abs(z)=absolute value of z)
in our particular case a=b=1
Javier Ruiz
C/Las Americas, 4, bajo.
38205 Santa Cruz de Tenerife
CANARY ISLANDS-SPAIN
phone: 34 22 25 35 14
e-mail: javiruiz@lix.intercom.es
|