Skip to main content

Module anchor

Module anchor 

Source
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:

Structs§

AabbPoint
A point based on Aabb, the number in each axis means the fraction of the size of the Aabb. (0, 0, 0) is the center point.
Centroid
The centroid.

Traits§

Aabb
Axis-Aligned Bounding Box
Locate
Locate a point.