Crate shape_core

source ·
Expand description

Modules

Structs

  • A Ball in 3D space
  • A circle defined by center and radius.
  • A circle in 3D space defined by center and radius.
  • A Cuboid is a
  • An ellipse defined by center and axes.
  • A ellipse in 3D space defined by center and radius.
  • A line_like segment of finite length, determined by a starting point and an ending point.
  • A line_like segment of finite length in 3D space, determined by a starting point and an ending point
  • A parallelogram is a quadrilateral with two pairs of parallel sides.
  • A 2D point.
  • A non-rotated rectangle, used to represent AABB collision boxes.
  • A square is a special case of a rectangle_2d, where the width and height are equal.
  • A triangle_like is a polygon with three edges and three vertices. It is one of the basic shapes in geometry.
  • Clockwise means the front side, and counterclockwise means the back side. When rendering, only the front side is rendered by default, and the back side is invisible.
  • represents an infinitely long line_like segment

Traits

  • Generic trait for floating point numbers
  • An Iterator blanket implementation that provides extra adaptors and methods.
  • The base trait for numeric types, covering 0 and 1 values, comparisons, basic numeric operations, and string conversion.
  • Defines a multiplicative identity element for Self.
  • A trait for real number types that do not necessarily have floating-point-specific characteristics such as NaN and infinity.
  • The trait for 2D shapes.
  • Useful functions for signed numbers (i.e. numbers that can be negative).
  • Defines an additive identity element for Self.