A squircle is a shape intermediate between a square and a circle. There are at least two definitions of "squircle" in use, one based on the superellipse, the other arising from work in optics. The word "squircle" is a portmanteau of the words "square" and "circle". Squircles have been applied in design and optics.
In a Cartesian coordinate system, the superellipse is defined by the equation where ra and rb are the semi-major and semi-minor axes, a and b are the x and y coordinates of the centre of the ellipse, and n is a positive number. The squircle is then defined as the superellipse with ra = rb and n = 4. Its equation is: [1] where r is the minor radius of the squircle, and the major radius is the geometric average between square and circle. Compare this to the equation of a circle. When the squircle is centred at the origin, then a = b = 0, and it is called Lamé's special quartic.
The area inside the squircle can be expressed in terms of the gamma function Γ as [1] where r is the minor radius of the squircle, and is the lemniscate constant.
In terms of the p-norm ‖ · ‖p on R2, the squircle can be expressed as: where p = 4, xc = (a, b) is the vector denoting the centre of the squircle, and x = (x, y). Effectively, this is still a "circle" of points at a distance r from the centre, but distance is defined differently. For comparison, the usual circle is the case p = 2, whereas the square is given by the p → ∞ case (the supremum norm), and a rotated square is given by p = 1 (the taxicab norm). This allows a straightforward generalization to a spherical cube, or sphube , in R3, or hypersphube in higher dimensions. [2]
Another squircle comes from work in optics. [3] [4] It may be called the Fernández-Guasti squircle or FG squircle, after one of its authors, to distinguish it from the superellipse-related squircle above. [2] This kind of squircle, centered at the origin, is defined by the equation: where r is the minor radius of the squircle, s is the squareness parameter, and x and y are in the interval [−r, r]. If s = 0, the equation is a circle; if s = 1, it is a square. This equation allows a smooth parametrization of the transition to a square from a circle, without involving infinity.
The FG squircle's radial distance from center to edge can be described parametrically in terms of the circle radius and rotation angle: [5]
In practice, when plotting on a computer, a small value like 0.001 can be added to the angle argument to avoid the indeterminate form when for any integer , or one can set for these cases.
The squareness parameter in the FG squircle, while bounded between 0 and 1, results in a nonlinear interpolation of the squircle "corner" between the inner circle and the square corner. The following relationship converts to , which can then be used in the squircle formula to obtain correctly interpolated squircles: [5]
Another type of squircle arises from trigonometry. [6] This type of squircle is periodic in R2 and has the equation
where r is the minor radius of the squircle, s is the squareness parameter, and x and y are in the interval [−r, r]. As s approaches 0 in the limit, the equation becomes a circle. When s = 1, the equation is a square. This shape can be visualized using online graphing calculators such as Desmos. [7]
A shape similar to a squircle, called a rounded square, may be generated by separating four quarters of a circle and connecting their loose ends with straight lines, or by separating the four sides of a square and connecting them with quarter-circles. Such a shape is very similar but not identical to the squircle. Although constructing a rounded square may be conceptually and physically simpler, the squircle has a simpler equation and can be generalised much more easily. One consequence of this is that the squircle and other superellipses can be scaled up or down quite easily. This is useful where, for example, one wishes to create nested squircles.
Another similar shape is a truncated circle, the boundary of the intersection of the regions enclosed by a square and by a concentric circle whose diameter is both greater than the length of the side of the square and less than the length of the diagonal of the square (so that each figure has interior points that are not in the interior of the other). Such shapes lack the tangent continuity possessed by both superellipses and rounded squares.
A rounded cube can be defined in terms of superellipsoids.
Similar to the name squircle, a sphube is a portmanteau of sphere and cube. It is the three-dimensional counterpart to the squircle. The equation for the FG-squircle in three dimensions is: [5]
In polar coordinates, the sphube is expressed parametrically as
While the squareness parameter in this case does not behave identically to its squircle counterpart, nevertheless the surface is a sphere when and approaches a cube with sharp corners as . [5]
Squircles are useful in optics. If light is passed through a two-dimensional square aperture, the central spot in the diffraction pattern can be closely modelled by a squircle or supercircle. If a rectangular aperture is used, the spot can be approximated by a superellipse. [4]
Squircles have also been used to construct dinner plates. A squircular plate has a larger area (and can thus hold more food) than a circular one with the same radius, but still occupies the same amount of space in a rectangular or square cupboard. [8]
Many Nokia phone models have been designed with a squircle-shaped touchpad button, [9] [10] as was the second generation Microsoft Zune. [11] Apple uses an approximation of a squircle (actually a quintic superellipse) for icons in iOS, iPadOS, macOS, and the home buttons of some Apple hardware. [12] One of the shapes for adaptive icons introduced in the Android "Oreo" operating system is a squircle. [13] Samsung uses squircle-shaped icons in their Android software overlay One UI, and in Samsung Experience and TouchWiz. [14]
Italian car manufacturer Fiat used numerous squircles in the interior and exterior design of the third generation Panda. [15]
Euler's formula, named after Leonhard Euler, is a mathematical formula in complex analysis that establishes the fundamental relationship between the trigonometric functions and the complex exponential function. Euler's formula states that, for any real number x, one has where e is the base of the natural logarithm, i is the imaginary unit, and cos and sin are the trigonometric functions cosine and sine respectively. This complex exponential function is sometimes denoted cis x. The formula is still valid if x is a complex number, and is also called Euler's formula in this more general case.
In mathematics, the polar coordinate system is a two-dimensional coordinate system in which each point on a plane is determined by a distance from a reference point and an angle from a reference direction. The reference point is called the pole, and the ray from the pole in the reference direction is the polar axis. The distance from the pole is called the radial coordinate, radial distance or simply radius, and the angle is called the angular coordinate, polar angle, or azimuth. Angles in polar notation are generally expressed in either degrees or radians.
In mathematics, a spherical coordinate system is a coordinate system for three-dimensional space where the position of a given point in space is specified by three real numbers: the radial distancer along the radial line connecting the point to the fixed point of origin; the polar angleθ between the radial line and a given polar axis; and the azimuthal angleφ as the angle of rotation of the radial line around the polar axis. (See graphic regarding the "physics convention".) Once the radius is fixed, the three coordinates (r, θ, φ), known as a 3-tuple, provide a coordinate system on a sphere, typically called the spherical polar coordinates. The plane passing through the origin and perpendicular to the polar axis (where the polar angle is a right angle) is called the reference plane (sometimes fundamental plane).
In mathematics, the trigonometric functions are real functions which relate an angle of a right-angled triangle to ratios of two side lengths. They are widely used in all sciences that are related to geometry, such as navigation, solid mechanics, celestial mechanics, geodesy, and many others. They are among the simplest periodic functions, and as such are also widely used for studying periodic phenomena through Fourier analysis.
In mathematics and physics, Laplace's equation is a second-order partial differential equation named after Pierre-Simon Laplace, who first studied its properties. This is often written as or where is the Laplace operator, is the divergence operator, is the gradient operator, and is a twice-differentiable real-valued function. The Laplace operator therefore maps a scalar function to another scalar function.
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 defined by an equation that allows for various shapes between a rectangle and an ellipse.
An ellipsoid is a surface that can be obtained from a sphere by deforming it by means of directional scalings, or more generally, of an affine transformation.
A tautochrone curve or isochrone curve is the curve for which the time taken by an object sliding without friction in uniform gravity to its lowest point is independent of its starting point on the curve. The curve is a cycloid, and the time is equal to π times the square root of the radius over the acceleration of gravity. The tautochrone curve is related to the brachistochrone curve, which is also a cycloid.
In mathematics and physical science, spherical harmonics are special functions defined on the surface of a sphere. They are often employed in solving partial differential equations in many scientific fields. The table of spherical harmonics contains a list of common spherical harmonics.
In geometry, a solid of revolution is a solid figure obtained by rotating a plane figure around some straight line, which may not intersect the generatrix. The surface created by this revolution and which bounds the solid is the surface of revolution.
A surface of revolution is a surface in Euclidean space created by rotating a curve one full revolution around an axis of rotation . The volume bounded by the surface created by this revolution is the solid of revolution.
In mathematics, the inverse trigonometric functions are the inverse functions of the trigonometric functions, under suitably restricted domains. Specifically, they are the inverses of the sine, cosine, tangent, cotangent, secant, and cosecant functions, and are used to obtain an angle from any of the angle's trigonometric ratios. Inverse trigonometric functions are widely used in engineering, navigation, physics, and geometry.
In geometry, a limaçon or limacon, also known as a limaçon of Pascal or Pascal's Snail, is defined as a roulette curve formed by the path of a point fixed to a circle when that circle rolls around the outside of a circle of equal radius. It can also be defined as the roulette formed when a circle rolls around a circle with half its radius so that the smaller circle is inside the larger circle. Thus, they belong to the family of curves called centered trochoids; more specifically, they are epitrochoids. The cardioid is the special case in which the point generating the roulette lies on the rolling circle; the resulting curve has a cusp.
In geometry, a cardioid is a plane curve traced by a point on the perimeter of a circle that is rolling around a fixed circle of the same radius. It can also be defined as an epicycloid having a single cusp. It is also a type of sinusoidal spiral, and an inverse curve of the parabola with the focus as the center of inversion. A cardioid can also be defined as the set of points of reflections of a fixed point on a circle through all tangents to the circle.
A cone is a three-dimensional geometric shape that tapers smoothly from a flat base to a point called the apex or vertex.
The Pythagorean trigonometric identity, also called simply the Pythagorean identity, is an identity expressing the Pythagorean theorem in terms of trigonometric functions. Along with the sum-of-angles formulae, it is one of the basic relations between the sine and cosine functions.
In geometry, the area enclosed by a circle of radius r is πr2. Here, the Greek letter π represents the constant ratio of the circumference of any circle to its diameter, approximately equal to 3.14159.
In mathematics, Viviani's curve, also known as Viviani's window, is a figure eight shaped space curve named after the Italian mathematician Vincenzo Viviani. It is the intersection of a sphere with a cylinder that is tangent to the sphere and passes through two poles of the sphere. Before Viviani this curve was studied by Simon de La Loubère and Gilles de Roberval.
In mathematics, sine and cosine are trigonometric functions of an angle. The sine and cosine of an acute angle are defined in the context of a right triangle: for the specified angle, its sine is the ratio of the length of the side that is opposite that angle to the length of the longest side of the triangle, and the cosine is the ratio of the length of the adjacent leg to that of the hypotenuse. For an angle , the sine and cosine functions are denoted as and .
In geometry, a hypercone is the figure in the 4-dimensional Euclidean space represented by the equation
See 3:13 in video