[][src]Struct sphrs::HarmonicsSet

pub struct HarmonicsSet<T, E, O> { /* fields omitted */ }

A set of spherical/solid harmonics up to a given degree

Methods

impl<T, E, O> HarmonicsSet<T, E, O> where
    T: SphrsFloat,
    O: Mul + Copy,
    Vec<O>: FromIterator<<O as Mul>::Output>,
    E: SHEval<T, O>, 
[src]

pub fn new(degree: usize, sh_type: E) -> HarmonicsSet<T, E, O>[src]

Create new HarmonicsSet struct

pub fn with_coefficients(&mut self, coefficients: Vec<O>) -> &mut Self[src]

Add coefficients

pub fn eval<C: SHCoordinates<T>>(&self, p: &C) -> Vec<O>[src]

Evaluate harmonics at postion p. This will respect coefficients if they are provided.

Auto Trait Implementations

impl<T, E, O> RefUnwindSafe for HarmonicsSet<T, E, O> where
    E: RefUnwindSafe,
    O: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, E, O> Send for HarmonicsSet<T, E, O> where
    E: Send,
    O: Send,
    T: Send

impl<T, E, O> Sync for HarmonicsSet<T, E, O> where
    E: Sync,
    O: Sync,
    T: Sync

impl<T, E, O> Unpin for HarmonicsSet<T, E, O> where
    E: Unpin,
    O: Unpin,
    T: Unpin

impl<T, E, O> UnwindSafe for HarmonicsSet<T, E, O> where
    E: UnwindSafe,
    O: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.