[−][src]Struct sphrs::HarmonicsSet
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]
T: SphrsFloat,
O: Mul + Copy,
Vec<O>: FromIterator<<O as Mul>::Output>,
E: SHEval<T, O>,
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,
E: RefUnwindSafe,
O: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E, O> Send for HarmonicsSet<T, E, O> where
E: Send,
O: Send,
T: Send,
E: Send,
O: Send,
T: Send,
impl<T, E, O> Sync for HarmonicsSet<T, E, O> where
E: Sync,
O: Sync,
T: Sync,
E: Sync,
O: Sync,
T: Sync,
impl<T, E, O> Unpin for HarmonicsSet<T, E, O> where
E: Unpin,
O: Unpin,
T: Unpin,
E: Unpin,
O: Unpin,
T: Unpin,
impl<T, E, O> UnwindSafe for HarmonicsSet<T, E, O> where
E: UnwindSafe,
O: UnwindSafe,
T: UnwindSafe,
E: UnwindSafe,
O: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,