oxiphysics-geometry 0.1.1

Geometric shape types for the OxiPhysics engine
Documentation
//! # SdfPlane - Trait Implementations
//!
//! This module contains trait implementations for `SdfPlane`.
//!
//! ## Implemented Traits
//!
//! - `Sdf`
//!
//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)

#[allow(unused_imports)]
use super::functions::*;
#[allow(unused_imports)]
use super::functions::*;
use super::types::SdfPlane;

impl Sdf for SdfPlane {
    fn dist(&self, p: [f64; 3]) -> f64 {
        dot(self.normal, p) - self.offset
    }
}