//! Support mapping based Plane shape. use math::Vector; use na::{self, Unit}; /// SupportMap description of a plane. #[derive(PartialEq, Debug, Clone)] pub struct Plane { /// The plane normal. normal: Unit, } impl Plane { /// Builds a new plane from its center and its normal. #[inline] pub fn new(normal: Unit) -> Plane { Plane { normal: normal } } /// The plane normal. #[inline] pub fn normal(&self) -> &Unit { &self.normal } }