Re-exports§
pub use color::Color;
pub use color::ColorSpace;
pub use transform::Transform;
pub use rect::Rect;
pub use cell::SimpleCell;
pub use cgmath;
Modules§
- aabb
- Axis-aligned bounding box.
- cell
- color
- Type for converting between color spaces. Still WIP and probably not totally correct or reliable.
- curve
- drag
- A simple structure for keeping track of mouse position/delta during drag operations.
- noise
- once
- Primitives for doing something exactly once.
- paths
- Helper functions for iterating over files and folders
- rect
- A rectangle type with utility functions for manipulating and testing against geometry.
- transform
- 3D transform with position, rotation, and scale.
Structs§
- Defer
- A simple, thread-safe utility designed to make it easier to deal with double-&mut errors.
- Frustum
Planes - Mono
Counter - Thread-safe monotonically-incrementing counter
- Plane
Functions§
- aabb_
frustum_ intersection - aabb_
plane_ intersection - array_
max - array_
min - format_
bytes - lerp
- normalize_
with_ constant - Normalizes a 3-vector with one value that stays constant. e.g. (0.6, 0.4, 0.8) => (0.6, 0.2, 0.4) Only tested with all-positive vectors, may misbehave when negatives are involved.
- point_
box_ intersection - slice_
max - slice_
min - view_
to_ frustum