The GNU 3DLDF Superellipse Page

Author: Laurence D. Finston

This copyright notice applies to the text and source code of this web site, and the graphics that appear on it. The software described in this text has its own copyright notice and license, which can be found in the distribution itself.

Copyright (C) 2022, 2023, 2024 The Free Software Foundation, Inc.

Permission is granted to copy, distribute, and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of this license is included in the file COPYING.TXT

Last updated: May 28, 2022


Table of Contents

Top
Superellipses
Contact

Back to top
Back to main contents
Back to main page

Superellipses

Superellipses are algebraic curves that mediate between ellipses and rectangles, according to the values of certain parameters.
METAFONT's superellipses are described in The METAFONTbook, p. 126. (Knuth 1986).
In Mathematical Carnival (Martin Gardner 1989), Chapter 18 is titled "Piet Hein's Superellipse" (pp. 240– 254).
Wikipedia article: Superellipse

Superellipses have both a Cartesian and a parametric equation, which may be found in the Wikipedia article cited above. "Ordinary" superellipses have only one value for β whereas a general version has one for the x-coordinate and one for the y-coordinate.

The superellipse macro in METAFONT's plain format does not, however, use either of these equations. Instead, it creates a path using direction specifiers, thereby taking advantage of properties of the superellipse regarding the tangents at particular points on the curve.

The superellipse macro therefore only allows for convex superellipses, whereas using appropriate parameter values results in paths consisting of concave sections.

Superellipses in 3DLDF


Back to contents
Back to top
Back to main contents
Back to main page