Crate shape_core
source ·Expand description
Structs
- A Ball in 3D space
- A circle defined by center and radius.
- A circle in 3D space defined by center and radius.
- An ellipse defined by center and axes.
- A ellipse in 3D space defined by center and radius.
- A line segment of finite length, determined by a starting point and an ending point.
- A line segment of finite length in 3D space, determined by a starting point and an ending point
- A 2D point.
- A rectangle without rotated.
- A square without rotated.
- 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 segment
Traits
- Generic trait for floating point numbers
- An
Iteratorblanket implementation that provides extra adaptors and methods. - The base trait for numeric types, covering
0and1values, 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.
- Useful functions for signed numbers (i.e. numbers that can be negative).
- A trait for checking if a shape is empty
- Defines an additive identity element for
Self.