oxiphysics_geometry/implicit_geometry/sdfsphere_traits.rs
1//! # SdfSphere - Trait Implementations
2//!
3//! This module contains trait implementations for `SdfSphere`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Sdf`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11#[allow(unused_imports)]
12use super::functions::*;
13#[allow(unused_imports)]
14use super::functions::*;
15use super::types::SdfSphere;
16
17impl Sdf for SdfSphere {
18 fn dist(&self, p: [f64; 3]) -> f64 {
19 len(p) - self.radius
20 }
21}