Rhombus
Rhombus
- half_diagonals : glam::Vec2
Description
A rhombus primitive, also known as a diamond shape. A four sided polygon, centered on the origin, where opposite sides are parallel but without requiring right angles.
Functions
Function | Summary |
---|---|
circumradius(_self) | Get the radius of the circumcircle on which all vertices of the rhombus lie |
clone(_self) | No Documentation 🚧 |
closest_point(_self, point) | Finds the point on the rhombus that is closest to the given `point`. If the point is outside the r |
eq(_self, other) | No Documentation 🚧 |
from_inradius(inradius) | Create a new `Rhombus` from a given inradius with all inner angles equal. |
from_side(side) | Create a new `Rhombus` from a side length with all inner angles equal. |
inradius(_self) | Get the radius of the largest circle that can be drawn within the rhombus |
new(horizontal_diagonal, vertical_diagonal) | Create a new `Rhombus` from a vertical and horizontal diagonal sizes. |
side(_self) | Get the length of each side of the rhombus |