First public release of Rapier.
This commit is contained in:
16
src/geometry/ball.rs
Normal file
16
src/geometry/ball.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
#[cfg(feature = "simd-is-enabled")]
|
||||
use crate::math::{Point, SimdFloat};
|
||||
|
||||
#[cfg(feature = "simd-is-enabled")]
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
pub(crate) struct WBall {
|
||||
pub center: Point<SimdFloat>,
|
||||
pub radius: SimdFloat,
|
||||
}
|
||||
|
||||
#[cfg(feature = "simd-is-enabled")]
|
||||
impl WBall {
|
||||
pub fn new(center: Point<SimdFloat>, radius: SimdFloat) -> Self {
|
||||
WBall { center, radius }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user