Om  1.0.0
A universal framework for multimedia simulation
Static Public Member Functions | List of all members
om::math::SH Class Reference

A class that contains functions that evaluate spherical harmonics at arbitrary order. More...

#include <omSphericalHarmonics.h>

Static Public Member Functions

static Size getCoefficientCount (Index order)
 Return the number of coefficients for the spherical harmonic expansion of the given order. More...
 
template<typename U , typename T >
static void cartesian (Index order, const VectorND< U, 3 > &v, SHExpansion< T > &expansion)
 Compute the spherical harmonic expansion for the given 3D normalized cartesian vector. More...
 
template<typename U , typename T >
static void cartesian (Index order, const VectorND< U, 3 > &v, T *expansion)
 Compute the spherical harmonic expansion for the given 3D normalized cartesian vector. More...
 
template<typename U , typename T >
static void cartesian (Index order, U x, U y, U z, T *expansion)
 Compute the spherical harmonic expansion for the given 3D normalized cartesian vector. More...
 
template<typename U , typename T >
static void accumulate (Index order, const VectorND< U, 3 > &v, SHExpansion< T > &expansion)
 Compute the spherical harmonic expansion for the given 3D normalized cartesian vector. More...
 
template<typename U , typename T >
static void accumulate (Index order, const VectorND< U, 3 > &v, T *expansion)
 Compute the spherical harmonic expansion for the given 3D normalized cartesian vector. More...
 
template<typename U , typename T >
static void accumulate (Index order, U x, U y, U z, T weight, T *expansion)
 Compute the spherical harmonic expansion for the given 3D normalized cartesian vector. More...
 

Detailed Description

A class that contains functions that evaluate spherical harmonics at arbitrary order.

Member Function Documentation

static Size om::math::SH::getCoefficientCount ( Index  order)
inlinestatic

Return the number of coefficients for the spherical harmonic expansion of the given order.

template<typename U , typename T >
static void om::math::SH::cartesian ( Index  order,
const VectorND< U, 3 > &  v,
SHExpansion< T > &  expansion 
)
inlinestatic

Compute the spherical harmonic expansion for the given 3D normalized cartesian vector.

template<typename U , typename T >
static void om::math::SH::cartesian ( Index  order,
const VectorND< U, 3 > &  v,
T *  expansion 
)
inlinestatic

Compute the spherical harmonic expansion for the given 3D normalized cartesian vector.

template<typename U , typename T >
static void om::math::SH::cartesian ( Index  order,
x,
y,
z,
T *  expansion 
)
inlinestatic

Compute the spherical harmonic expansion for the given 3D normalized cartesian vector.

template<typename U , typename T >
static void om::math::SH::accumulate ( Index  order,
const VectorND< U, 3 > &  v,
SHExpansion< T > &  expansion 
)
inlinestatic

Compute the spherical harmonic expansion for the given 3D normalized cartesian vector.

template<typename U , typename T >
static void om::math::SH::accumulate ( Index  order,
const VectorND< U, 3 > &  v,
T *  expansion 
)
inlinestatic

Compute the spherical harmonic expansion for the given 3D normalized cartesian vector.

template<typename U , typename T >
static void om::math::SH::accumulate ( Index  order,
x,
y,
z,
weight,
T *  expansion 
)
inlinestatic

Compute the spherical harmonic expansion for the given 3D normalized cartesian vector.


The documentation for this class was generated from the following file: