use super::Point;
#[derive(Copy, Clone, Debug, Default, PartialEq)]
pub struct Sphere {
pub center: Point,
pub radius: f32,
}
impl From<Sphere> for audionimbus_sys::IPLSphere {
fn from(sphere: Sphere) -> Self {
Self {
center: sphere.center.into(),
radius: sphere.radius,
}
}
}
impl From<audionimbus_sys::IPLSphere> for Sphere {
fn from(ipl_sphere: audionimbus_sys::IPLSphere) -> Self {
Self {
center: ipl_sphere.center.into(),
radius: ipl_sphere.radius,
}
}
}