ball 0.1.0

The n-dimension ball
Documentation
1
2
3
4
5
6
7
8
9
10
use super::*;

impl<T> From<(T, T, T)> for Ball<2>
where
    Float: From<T>,
{
    fn from(t: (T, T, T)) -> Self {
        Self { center: [Float::from(t.0), Float::from(t.1)], radius: Float::from(t.2) }
    }
}