mini-collide 0.3.2

Lightweight collision routines for 3D graphics
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use mini_math::Point;

/// A sphere
#[derive(Debug)]
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 }
    }
}