Om
1.0.0
A universal framework for multimedia simulation
|
A class that stores a spherical harmonic expansion of a template (possibly vector) type. More...
#include <omSphericalHarmonics.h>
Public Member Functions | |
SHExpansion () | |
Create a spherical harmonic expansion with no cofficients allocated. More... | |
SHExpansion (Size newOrder) | |
Create a spherical harmonic expansion of the specified order. More... | |
SHExpansion (const SHExpansion &other) | |
Create a spherical harmonic expansion that is a copy of another expansion. More... | |
SHExpansion & | operator= (const SHExpansion &other) |
Assign the contents of another spherical harmonic expansion to this one. More... | |
Size | getOrder () const |
Return the order of this spherical harmonic expansion. More... | |
void | setOrder (Size newOrder) |
Set the order of this spherical harmonic expansion. More... | |
void | setOrderUninitialized (Size newOrder) |
Set the order of this spherical harmonic expansion. More... | |
T * | getCoefficients () |
Return a pointer to the spherical harmonic coefficients for this expansion. More... | |
const T * | getCoefficients () const |
Return a const pointer to the spherical harmonic coefficients for this expansion. More... | |
Size | getCoefficientCount () const |
Return the number of coefficients that are in this spherical harmonic expansion. More... | |
void | zero () |
Zero-out the storage of this spherical harmonic expansion. More... | |
A class that stores a spherical harmonic expansion of a template (possibly vector) type.
|
inline |
Create a spherical harmonic expansion with no cofficients allocated.
|
inline |
Create a spherical harmonic expansion of the specified order.
The coefficients are uninitialized.
|
inline |
Create a spherical harmonic expansion that is a copy of another expansion.
|
inline |
Assign the contents of another spherical harmonic expansion to this one.
|
inline |
Return the order of this spherical harmonic expansion.
An expansion of order N has (N+1)*(N+1) coefficients in its expansion.
|
inline |
Set the order of this spherical harmonic expansion.
The entries from the previous expansion that are valid for the specified order are copied into the new expansion array. Any new values in the expansion are uninitialized.
|
inline |
Set the order of this spherical harmonic expansion.
The entries in the new expansion array are not initialized.
|
inline |
Return a pointer to the spherical harmonic coefficients for this expansion.
|
inline |
Return a const pointer to the spherical harmonic coefficients for this expansion.
|
inline |
Return the number of coefficients that are in this spherical harmonic expansion.
|
inline |
Zero-out the storage of this spherical harmonic expansion.