Skip to main content

sphere_vs_obb

Function sphere_vs_obb 

Source
pub fn sphere_vs_obb<T: Float, V: VecN<T> + VecFloatOps<T> + NumberOps<T> + SignedNumberOps<T>, M: MatTranslate<V> + MatInverse<T> + MatRotate3D<T, V> + MatN<T, V>>(
    s: V,
    r: T,
    obb: M,
) -> bool
Expand description

returns true if the sphere with centre s0 and radius r0 overlaps obb defined by matrix obb, where the matrix transforms a unit cube with extents -1 to 1 into an obb