point_inside_obb

Function point_inside_obb 

Source
pub fn point_inside_obb<T: Float, V: VecFloatOps<T> + NumberOps<T> + SignedNumberOps<T> + VecN<T> + SignedVecN<T>, M: MatTranslate<V> + MatInverse<T> + MatN<T, V>>(
    p: V,
    mat: M,
) -> bool
Expand description

returns true if the point p is inside the obb defined by mat which will transform an aabb with extents -1 to 1 into an obb