1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
use mini_math::Point;

/// A sphere
pub struct Sphere {
    /// The center of the sphere
    pub center: Point,
    /// The radius of the sphere
    pub radius: f32,
}

impl Sphere {
    /// Construct a sphere from a center point and a radius
    pub fn new(center: Point, radius: f32) -> Self {
        Self { center, radius }
    }
}