
A superellipse, also known as a Lamé curve after
Gabriel Lamé, is a closed curve resembling the
ellipse
In mathematics, an ellipse is a plane curve surrounding two focus (geometry), focal points, such that for all points on the curve, the sum of the two distances to the focal points is a constant. It generalizes a circle, which is the special ty ...
, retaining the geometric features of
semi-major axis
In geometry, the major axis of an ellipse is its longest diameter: a line segment that runs through the center and both foci, with ends at the two most widely separated points of the perimeter. The semi-major axis (major semiaxis) is the longe ...
and
semi-minor axis
In geometry, the major axis of an ellipse is its longest diameter: a line segment that runs through the center and both foci, with ends at the two most widely separated points of the perimeter. The semi-major axis (major semiaxis) is the longe ...
, and symmetry about them, but defined by an equation that allows for various shapes between a rectangle and an ellipse.
In two dimensional
Cartesian coordinate system
In geometry, a Cartesian coordinate system (, ) in a plane (geometry), plane is a coordinate system that specifies each point (geometry), point uniquely by a pair of real numbers called ''coordinates'', which are the positive and negative number ...
, a superellipse is defined as the set of all points
on the curve that satisfy the equation
where
and
are positive numbers referred to as
semi-diameters or
semi-axes of the superellipse, and
is a positive parameter that defines the shape. When
, the superellipse is an ordinary ellipse. For
, the shape is more rectangular with rounded corners, and for