Function maths_rs::ray_vs_capsule
source · pub fn ray_vs_capsule<T: Float + FloatOps<T> + NumberOps<T> + SignedNumberOps<T>, V: VecN<T> + Cross<T> + VecFloatOps<T> + SignedNumberOps<T> + FloatOps<T>>(
r0: V,
rv: V,
c0: V,
c1: V,
cr: T
) -> Option<V>Expand description
returns the intersection point of ray wih origin r0 and direction rv against the capsule with line c0-c1 and radius cr