pub fn relative_radius(&self, p_normal: &Vec3A, axes: &[Vec3A]) -> f32 {
        // NOTE: dot products on Vec3A use SIMD and even with the overhead of conversion are net faster than Vec3
        let half_extents = Vec3A::from(self.half_extents);
        Vec3A::new(
            p_normal.dot(axes[0]),
            p_normal.dot(axes[1]),
            p_normal.dot(axes[2]),
        )
        .abs()
        .dot(half_extents)
    }
/// Calculate the relative radius of the AABB with respect to a plane
Calculate the relative radius of the AABB with respect to a plane
Calculate the relative radius of the AABB with respect to a plane
pub fn relative_radius(&self, p_normal: &Vec3A, axes: &[Vec3A]) -> f32 {
        // NOTE: dot products on Vec3A use SIMD and even with the overhead of conversion are net faster than Vec3
        let half_extents = Vec3A::from(self.half_extents);
        Vec3A::new(
            p_normal.dot(axes[0]),
            p_normal.dot(axes[1]),
            p_normal.dot(axes[2]),
        )
        .abs()
        .dot(half_extents)
    }
pub fn relative_radius ( & self , p_normal : & Vec3A , axes : & [ Vec3A ] ) -> f32 { // NOTE: dot products on Vec3A use SIMD and even with the overhead of conversion are net faster than Vec3 let half_extents = Vec3A :: from ( self . half_extents ) ; Vec3A :: new ( p_normal . dot ( axes [ 0 ] ) , p_normal . dot ( axes [ 1 ] ) , p_normal . dot ( axes [ 2 ] ) , ) . abs ( ) . dot ( half_extents ) }
Calculate the relative radius of the AABB with respect to a plane
Calculate the relative radius of the AABB with respect to a plane
&self
p_normal
&Vec3A
axes
&[Vec3A]
&self
p_normal
&Vec3A
axes
&[Vec3A]