Superellipse
A superellipse, also known as a Lamé curve after Gabriel Lamé, is a closed curve resembling the ellipse, retaining the geometric features of semi-major axis and semi-minor axis, and symmetry about them, but a different overall shape.
In the Cartesian coordinate system, the set of all points [math]\displaystyle{ (x,y) }[/math] on the curve satisfy the equation [math]\displaystyle{ \left|\frac{x}{a}\right|^n\!\! + \left|\frac{y}{b}\right|^n\! = 1, }[/math] where [math]\displaystyle{ n,a }[/math] and [math]\displaystyle{ b }[/math] are positive numbers, and the vertical bars around a number indicate the absolute value of the number. The 3-dimensional generalization is called superellipsoid (some literatures also name it superquadrics).[1][2]
In the polar coordinate system, the superellipse equation is (the set of all points [math]\displaystyle{ (r,\theta) }[/math] on the curve satisfy the equation) : [math]\displaystyle{ r = \left(\left|\frac{\cos(\theta)}{a}\right|^n\!\! + \left|\frac{\sin(\theta)}{b}\right|^n\!\right)^{-1/n}\!. }[/math]
Specific cases
This formula defines a closed curve contained in the rectangle −a ≤ x ≤ +a and −b ≤ y ≤ +b. The parameters a and b are called the semi-diameters of the curve. The overall shape of the curve is determined by the value of the exponent n, as shown in the following table:
[math]\displaystyle{ 0 \lt n \lt 1 }[/math] | The superellipse looks like a four-armed star with concave (inwards-curved) sides. For n = 1/2, in particular, each of the four arcs is a segment of a parabola. An astroid is the special case a = b, n = 2/3. |
|
[math]\displaystyle{ n = 1 }[/math] | The curve is a rhombus with corners (±a, 0) and (0, ±b). | |
[math]\displaystyle{ 1\lt n \lt 2 }[/math] | The curve looks like a rhombus with the same corners but with convex (outwards-curved) sides. The curvature increases without limit as one approaches its extreme points. |
|
[math]\displaystyle{ n=2 }[/math] | The curve is an ordinary ellipse (in particular, a circle if a = b). | |
[math]\displaystyle{ n\gt 2 }[/math] | The curve looks superficially like a rectangle with rounded corners. The curvature is zero at the points (±a, 0) and (0, ±b). |
If n < 2, the figure is also called a hypoellipse; if n > 2, a hyperellipse.
When n ≥ 1 and a = b, the superellipse is the boundary of a ball of R2 in the n-norm.
The extreme points of the superellipse are (±a, 0) and (0, ±b), and its four "corners" are (±sa, ±sb), where [math]\displaystyle{ s = 2^{-1/n} }[/math] (sometimes called the "superness"[3]).
Mathematical properties
When n is a positive rational number p/q (in lowest terms), then each quadrant of the superellipse is a plane algebraic curve of order pq.[4] In particular, when a = b = 1 and n is an even integer, then it is a Fermat curve of degree n. In that case it is non-singular, but in general it will be singular. If the numerator is not even, then the curve is pieced together from portions of the same algebraic curve in different orientations.
The curve is given by the parametric equations (with parameter [math]\displaystyle{ t }[/math] having no elementary geometric interpretation)
[math]\displaystyle{ \left. \begin{align} x\left(t\right) &= \plusmn a\cos^{\frac{2}{n}} t \\ y\left(t\right) &= \plusmn b\sin^{\frac{2}{n}} t \end{align} \right\} \qquad 0 \le t \le \frac{\pi}{2} }[/math]
where each ± can be chosen separately so that each value of [math]\displaystyle{ t }[/math] gives four points on the curve. Equivalently, letting [math]\displaystyle{ t }[/math] range over [math]\displaystyle{ 0\le t \lt 2\pi, }[/math]
[math]\displaystyle{ \begin{align} x\left(t\right) &= {\left|\cos t\right|}^{\frac{2}{n}} \cdot a \sgn(\cos t) \\ y\left(t\right) &= {\left|\sin t\right|}^{\frac{2}{n}} \cdot b \sgn(\sin t) \end{align} }[/math]
where the sign function is [math]\displaystyle{ \sgn(w) = \begin{cases} -1, & w \lt 0 \\ 0, & w = 0 \\ +1, & w \gt 0 . \end{cases} }[/math]
Here [math]\displaystyle{ t }[/math] is not the angle between the positive horizontal axis and the ray from the origin to the point, since the tangent of this angle equals y/x while in the parametric expressions [math]\displaystyle{ \frac{y}{x} = \frac{b}{a} (\tan t)^{2/n} \neq \tan t. }[/math]
Area
The area inside the superellipse can be expressed in terms of the gamma function as
[math]\displaystyle{ \mathrm{Area} = 4 a b \frac{\left(\Gamma \left(1+\tfrac{1}{n}\right)\right)^2}{\Gamma \left(1+\tfrac{2}{n}\right)} , }[/math]
or in terms of the beta function as
- [math]\displaystyle{ \mathrm{Area} = \frac{4 a b}{n} \Beta\!\left(\frac{1}{n},\frac{1}{n}+1\right) . }[/math]
Perimeter
The perimeter of a superellipse, like that of an ellipse, does not admit closed-form solution purely using elementary functions. Exact solutions for the perimeter of a superellipse exist using infinite summations;[5] these could be truncated to obtain approximate solutions. Numerical integration is another option to obtain perimeter estimates at arbitrary precision.
A closed-form approximation obtained via symbolic regression is also an option that balances parsimony and accuracy. Consider a superellipse centered on the origin of a 2D plane. Now, imagine that the superellipse (with shape parameter [math]\displaystyle{ n }[/math]) is stretched such that the first quadrant (e.g., [math]\displaystyle{ x\gt 0 }[/math], [math]\displaystyle{ y\gt 0 }[/math]) is an arc from [math]\displaystyle{ (1, 0) }[/math] to [math]\displaystyle{ (0, h) }[/math], with [math]\displaystyle{ h \geq 1 }[/math]. Then, the arc length of the superellipse within that single quadrant is approximated as the following function of [math]\displaystyle{ h }[/math] and [math]\displaystyle{ n }[/math]:[6]
h + (((((n-0.88487077) * h + 0.2588574 / h) ^ exp(n / -0.90069205)) + h) + 0.09919785) ^ (-1.4812293 / n)
This single-quadrant arc length approximation is accurate to within ±0.2% for across all values of [math]\displaystyle{ n }[/math], and can be used to efficiently estimate the total perimeter of a superellipse.
Pedal Curve
The pedal curve is relatively straightforward to compute. Specifically, the pedal of [math]\displaystyle{ \left|\frac{x}{a}\right|^n\! + \left|\frac{y}{b}\right|^n\! = 1, }[/math] is given in polar coordinates by[7]
[math]\displaystyle{ (a \cos \theta)^{\tfrac{n}{n-1}}+(b \sin \theta)^{\tfrac{n}{n-1}}=r^{\tfrac{n}{n-1}}. }[/math]
Generalizations
The superellipse is further generalized as: [math]\displaystyle{ \left|\frac{x}{a}\right|^m \!\!+ \left|\frac{y}{b}\right|^n\! = 1; \qquad m, n \gt 0. }[/math] or [math]\displaystyle{ \begin{align} x\left(t\right) &= {\left|\cos t\right|}^{\frac{2}{m}} \cdot a \sgn(\cos t) \\ y\left(t\right) &= {\left|\sin t\right|}^{\frac{2}{n}} \cdot b \sgn(\sin t). \end{align} }[/math]
Note that [math]\displaystyle{ t }[/math] is a parameter which is not linked to the physical angle through elementary functions.
History
The general Cartesian notation of the form comes from the French mathematician Gabriel Lamé (1795–1870), who generalized the equation for the ellipse.
Hermann Zapf's typeface Melior, published in 1952, uses superellipses for letters such as o. Thirty years later Donald Knuth would build the ability to choose between true ellipses and superellipses (both approximated by cubic splines) into his Computer Modern type family.
The superellipse was named by the Denmark poet and scientist Piet Hein (1905–1996) though he did not discover it as it is sometimes claimed. In 1959, city planners in Stockholm, Sweden announced a design challenge for a roundabout in their city square Sergels Torg. Piet Hein's winning proposal was based on a superellipse with n = 2.5 and a/b = 6/5.[8] As he explained it:
Man is the animal that draws lines which he himself then stumbles over. In the whole pattern of civilization there have been two tendencies, one toward straight lines and rectangular patterns and one toward circular lines. There are reasons, mechanical and psychological, for both tendencies. Things made with straight lines fit well together and save space. And we can move easily — physically or mentally — around things made with round lines. But we are in a straitjacket, having to accept one or the other, when often some intermediate form would be better. To draw something freehand — such as the patchwork traffic circle they tried in Stockholm — will not do. It isn't fixed, isn't definite like a circle or square. You don't know what it is. It isn't esthetically satisfying. The super-ellipse solved the problem. It is neither round nor rectangular, but in between. Yet it is fixed, it is definite — it has a unity.
Sergels Torg was completed in 1967. Meanwhile, Piet Hein went on to use the superellipse in other artifacts, such as beds, dishes, tables, etc.[9] By rotating a superellipse around the longest axis, he created the superegg, a solid egg-like shape that could stand upright on a flat surface, and was marketed as a novelty toy.
In 1968, when negotiators in Paris for the Vietnam War could not agree on the shape of the negotiating table, Balinski, Kieron Underwood and Holt suggested a superelliptical table in a letter to the New York Times .[8] The superellipse was used for the shape of the 1968 Azteca Olympic Stadium, in Mexico City.
Waldo R. Tobler developed a map projection, the Tobler hyperelliptical projection, published in 1973,[10] in which the meridians are arcs of superellipses.
The logo for news company The Local consists of a tilted superellipse matching the proportions of Sergels Torg. Three connected superellipses are used in the logo of the Pittsburgh Steelers.
In computing, mobile operating system iOS uses a superellipse curve for app icons, replacing the rounded corners style used up to version 6.[11]
See also
- Astroid, the superellipse with n = 2⁄3 and a = b, is a hypocycloid with four cusps.
- Deltoid curve, the hypocycloid of three cusps.
- Squircle, the superellipse with n = 4 and a = b, looks like "The Four-Cornered Wheel."
- Reuleaux triangle, "The Three-Cornered Wheel."
- Superformula, a generalization of the superellipse.
- Superquadrics: superellipsoids and supertoroids, the three-dimensional "relatives" of superellipses.
- Superelliptic curve, equation of the form Yn = f(X).
- Lp spaces
References
- ↑ Barr (1981). "Superquadrics and Angle-Preserving Transformations". IEEE Computer Graphics and Applications 1 (1): 11–23. doi:10.1109/MCG.1981.1673799. ISSN 1558-1756. https://ieeexplore.ieee.org/document/1673799.
- ↑ Liu, Weixiao; Wu, Yuwei; Ruan, Sipu; Chirikjian, Gregory S. (2022). "Robust and Accurate Superquadric Recovery: A Probabilistic Approach". 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 2666–2675. doi:10.1109/CVPR52688.2022.00270. ISBN 978-1-6654-6946-3. https://ieeexplore.ieee.org/document/9878948.
- ↑ Donald Knuth: The METAFONTbook, p. 126
- ↑ "Astroid". http://xahlee.info/SpecialPlaneCurves_dir/Astroid_dir/astroid.pdf.
- ↑ "Superellipse (Lame curve)". https://fractional-calculus.com/super_ellipse.pdf.
- ↑ Sharpe, Peter. "AeroSandbox". GitHub. https://github.com/peterdsharpe/AeroSandbox/blob/5c3a8697fc377bc5d5c4881f08ee0a6f19ccd33c/aerosandbox/geometry/fuselage.py#L793.
- ↑ J. Edwards (1892). Differential Calculus. London: MacMillan and Co.. pp. 164. https://archive.org/details/in.ernet.dli.2015.109607.
- ↑ 8.0 8.1 Gardner, Martin (1977), "Piet Hein’s Superellipse", Mathematical Carnival. A New Round-Up of Tantalizers and Puzzles from Scientific American, New York: Vintage Press, pp. 240–254, ISBN 978-0-394-72349-5, https://archive.org/details/mathematicalcarn00gard/page/240
- ↑ The Superellipse, in The Guide to Life, The Universe and Everything by BBC (27 June 2003)
- ↑ Tobler, Waldo (1973), "The hyperelliptical and other new pseudocylindrical equal area map projections", Journal of Geophysical Research 78 (11): 1753–1759, doi:10.1029/JB078i011p01753, Bibcode: 1973JGR....78.1753T.
- ↑ Mynttinen, Ivo. "The iOS Design Guidelines". http://iosdesign.ivomynttinen.com/.
External links
- Hazewinkel, Michiel, ed. (2001), "Lamé curve", Encyclopedia of Mathematics, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN 978-1-55608-010-4, https://www.encyclopediaofmath.org/index.php?title=Lam%C3%A9_curve&oldid=11566
- "Lamé Curve" at MathCurve.
- Weisstein, Eric W.. "Superellipse". http://mathworld.wolfram.com/Superellipse.html.
- O'Connor, John J.; Robertson, Edmund F., "Lame Curves", MacTutor History of Mathematics archive, University of St Andrews, http://www-history.mcs.st-andrews.ac.uk/history/Curves/Lame.html.
- "Super Ellipse" on 2dcurves.com
- Superellipse Calculator & Template Generator
- Superellipse fitting toolbox in MATLAB
- C code for fitting superellipses
Original source: https://en.wikipedia.org/wiki/Superellipse.
Read more |