Expand description
Anchors and semantic bounds. Anchor
Ranim has an anchor system based on generics, an anchor can be any type T,
and types that implement crate::anchor::Locate<T> can use
crate::anchor::Locate::locate to convert the anchor to a glam::DVec3 point.
Ranim provides some built-in anchors and related crate::anchor::Locate implementations:
glam::DVec3: The point itself in 3d space.crate::anchor::Centroid: The avg point of all points. Note that sometime the center of Aabb is not the centroid. (0, 0, 0) is the center point.crate::anchor::AabbPoint: A point based oncrate::anchor::Aabb’s size, the number in each axis means the fraction of the size of thecrate::anchor::Aabb.
Structs§
- Aabb
Point - A point based on
Aabb, the number in each axis means the fraction of the size of theAabb. (0, 0, 0) is the center point. - Centroid
- The centroid.