Squircle

Uses your system voice; voice and rate in settings.

Snapshot

≈ 7 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

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.

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. \left|\frac{x - a}{r_a}\right|^n + \left|\frac{y - b}{r_b}\right|^n = 1, where and are the semi-major and semi-minor axes, and are the and coordinates of the centre of the ellipse, and is a positive number. The prototypical squircle is then defined as the superellipse where and . Its equation is: \left|x - a\right|^4 + \left|y - b\right|^4 = r^4 where is the radius of the squircle. Compare this to the equation of a circle. When the squircle is centred at the origin, then , and it is called Lamé's special quartic. The area inside this squircle can be expressed in terms of the beta function or the gamma function as \begin{align} \text{Area} &= 4 \int_0^r \sqrt[4]{r^4-x^4} \, dx \\ &= 4r\int_0^r \sqrt[4]{1-\frac{x^4}{r^4}} \, dx \\ &= 4r^2 \int_{0}^{1} \sqrt[4]{1-u^4} \, du \\ &= \sqrt[4]{4}r^2 \int_0^\frac14 v^{-\frac34}\sqrt[4]{1-4v} \, dv \\ &= r^2 \int_0^1 (1-w)^\frac14 w^{-\frac34} \, dw \\ &= r^2 \int_0^1 (1-w)^{\frac54-1} w^{\frac14-1} \, dw \\ &= r^2 \cdot \operatorname{\Beta}\left(\tfrac14,\tfrac54\right) \\ &= 4r^2 \frac{\left(\operatorname{\Gamma} \left(1+\frac14\right)\right)^2}{\operatorname{\Gamma} \left(1+\frac24\right)} \\ &= \frac{8r^2 \left(\operatorname{\Gamma} \left(\frac54\right)\right)^2 }{\sqrt\pi} \\ &= \varpi \sqrt{2} r^2 \approx 3.708149 r^2, \end{align} where is the radius of the squircle, and is the lemniscate constant. === -norm notation=== In terms of the -norm on , the squircle can be expressed as: \left\|\mathbf{x} - \mathbf{x}_c\right\|_p = r where , is the vector denoting the centre of the squircle, and . Effectively, this is still a "circle" of points at a distance from the centre, but distance is defined differently. For comparison, the usual circle is the case , whereas the square is given by the case (the supremum norm), and a rotated square is given by (the taxicab norm). This allows a straightforward generalization to a spherical cube (sphube), in , or hypersphube in higher dimensions. Different values of may be used for a more general squircle, from which an analog to trigonometry ("squigonometry") has been developed. x^2 + y^2 - \frac{s^2}{r^2} x^2 y^2 = r^2 where is the radius of the squircle, is the squareness parameter, and and are in the interval . If , the equation is a circle; if , it is a square. This equation allows a smooth parametrization of the transition to a square from a circle, without invoking infinity. \rho = \frac{r\sqrt{2}}{s|\sin{2\theta}|} \sqrt{1-\sqrt{1-s^2 \sin^2{2\theta}}} 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. s = 2 \frac{\sqrt{\left(3-2\sqrt{2}\right)s_\mathrm{L}^2-2\left(1-\sqrt{2}\right)s_\mathrm{L}}}{(1-\left(1-\sqrt{2}\right)s_\mathrm{L})^2} \cos\left(\frac{s \pi x}{2 r}\right) \cos\left(\frac{s \pi y}{2 r}\right) = \cos\left(\frac{s \pi }{2 }\right) where is the minor radius of the squircle, is the squareness parameter, and and are in the interval . As approaches 0 in the limit, the equation becomes a circle. When , the equation is a square. ===Rounded square=== A shape similar to a squircle, called a , 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. ===Truncated circle=== 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. ===Rounded cube=== A rounded cube can be defined in terms of superellipsoids. ===Sphube=== 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: x^2 + y^2 + z^2 - \frac{s^2}{r^2}\left(x^2 y^2 + y^2 z^2 + x^2 z^2 - \frac{s^2}{r^2}x^2 y^2 z^2\right) = r^2 In polar coordinates, the sphube is expressed parametrically as \begin{align} x &= \frac{r \cos\theta\ \cos\phi}{\sqrt{1-s\cos^2\theta\sin^2\phi - s\sin^2\theta}}\\ y &= \frac{r \cos\theta\ \sin\phi}{\sqrt{1-s\cos^2\theta\cos^2\phi - s\sin^2\theta}}\\ z &= \frac{r \sin\theta}{\sqrt{1 - s\cos^2\theta}} \end{align} While the squareness parameter in this case does not behave identically to its squircle counterpart, nevertheless the surface is a sphere when equals 0, and approaches a cube with sharp corners as approaches 1. ==Uses== 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. 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. Many Nokia phone models have been designed with a squircle-shaped touchpad button, as was the second generation Microsoft Zune. 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. One of the shapes for adaptive icons introduced in the Android "Oreo" operating system is a squircle. Samsung uses squircle-shaped icons in their Android software overlay One UI, and in Samsung Experience and TouchWiz. Italian car manufacturer Fiat used numerous squircles in the interior and exterior design of the third generation Panda. ==See also== Squigonometry Astroid Ellipse Ellipsoid spaces Oval Squround Superegg ==References== ==External links== by Matt Parker Online Calculator for supercircle and super-ellipse Web based supercircle generator

Text derived from https://en.wikipedia.org/w/index.php?oldid=1356713550 under CC BY-SA 4.0; modifications have been made.