Crate toolbelt

Source

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.
FrustumPlanes
MonoCounter
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