Module speedy2d::shape

source ·
Expand description

Types representing shapes.

Structs§

  • A struct representing a polygon.
  • A struct representing an axis-aligned rectangle. Two points are stored: the top left vertex, and the bottom right vertex.
  • A struct representing an axis-aligned rounded rectangle. Two points and a value of type ‘T’ are stored: the top left vertex, the bottom right vertex and the radius of the rounded corners.

Type Aliases§

  • A struct representing an axis-aligned rectangle. Two points are stored: the top left vertex, and the bottom right vertex.
  • A struct representing an axis-aligned rounded rectangle. Two points and an ‘i32’ are stored: the top left vertex, the bottom right vertex and the radius of the rounded corners.
  • A struct representing an axis-aligned rectangle. Two points are stored: the top left vertex, and the bottom right vertex.
  • A struct representing an axis-aligned rounded rectangle. Two points and an ‘f32’ are stored: the top left vertex, the bottom right vertex and the radius of the rounded corners.
  • A struct representing an axis-aligned rectangle. Two points are stored: the top left vertex, and the bottom right vertex.
  • A struct representing an axis-aligned rounded rectangle. Two points and an ‘u32’ are stored: the top left vertex, the bottom right vertex and the radius of the rounded corners.