$$ \gdef\pd#1#2{\frac{\partial #1}{\partial #2}} \gdef\d#1{\, \mathrm{d}#1} \gdef\dx{\d{x}} \gdef\tr#1{\operatorname{tr} (#1)} $$ $$ \gdef\norm#1{\left \lVert #1 \right\rVert} \gdef\seminorm#1{| #1 |} $$ $$ \gdef\vec#1{\mathbf{\boldsymbol{#1}}} \gdef\dvec#1{\bar{\vec #1}} $$

Type Alias fenris::geometry::Ball

source ·
pub type Ball<T> = Hyperball<T, Const<3>>;

Aliased Type§

struct Ball<T> { /* private fields */ }

Implementations§

source§

impl<T, D> Hyperball<T, D>where T: Scalar, D: DimName, DefaultAllocator: Allocator<T, D, Const<1>>,

source

pub fn from_center_and_radius( center: OPoint<T, D>, radius: T ) -> Hyperball<T, D>

source

pub fn center(&self) -> &OPoint<T, D>

source

pub fn radius(&self) -> T

Trait Implementations§

source§

impl<T, D> Clone for Hyperball<T, D>where T: Clone + Scalar, D: Clone + DimName, DefaultAllocator: Allocator<T, D, Const<1>>,

source§

fn clone(&self) -> Hyperball<T, D>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T, D> Debug for Hyperball<T, D>where T: Debug + Scalar, D: Debug + DimName, DefaultAllocator: Allocator<T, D, Const<1>>,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de, T, D> Deserialize<'de> for Hyperball<T, D>where T: Scalar + Deserialize<'de>, D: DimName, DefaultAllocator: Allocator<T, D, Const<1>>, OPoint<T, D>: Deserialize<'de>,

source§

fn deserialize<__D>( __deserializer: __D ) -> Result<Hyperball<T, D>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T, D> PartialEq<Hyperball<T, D>> for Hyperball<T, D>where T: PartialEq<T> + Scalar, D: PartialEq<D> + DimName, DefaultAllocator: Allocator<T, D, Const<1>>,

source§

fn eq(&self, other: &Hyperball<T, D>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T, D> Serialize for Hyperball<T, D>where T: Scalar + Serialize, D: DimName, DefaultAllocator: Allocator<T, D, Const<1>>, OPoint<T, D>: Serialize,

source§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T, D> Eq for Hyperball<T, D>where T: Eq + Scalar, D: Eq + DimName, DefaultAllocator: Allocator<T, D, Const<1>>,

source§

impl<T, D> StructuralEq for Hyperball<T, D>where T: Scalar, D: DimName, DefaultAllocator: Allocator<T, D, Const<1>>,

source§

impl<T, D> StructuralPartialEq for Hyperball<T, D>where T: Scalar, D: DimName, DefaultAllocator: Allocator<T, D, Const<1>>,