public class SphericalHarmonics
extends java.lang.Object
Constructor and Description |
---|
SphericalHarmonics() |
Modifier and Type | Method and Description |
---|---|
static int |
evenFuncsUpTo(int order)
Computes the number of even spherical harmonic functions up to a
specified order.
|
static int |
funcsUpTo(int order)
Computes the number of spherical harmonic functions up to a specified
order.
|
static double |
plgndr(int l,
int m,
double x)
NRC method for computing associated Legendre polynomial values.
|
static Complex |
Y(int l,
int m,
double theta,
double phi)
Computes spherical harmonic of order l, index m at colatitude theta and
longitude phi.
|
public static Complex Y(int l, int m, double theta, double phi) throws SphericalHarmonicException
l
- The spherical harmonic order.m
- The spherical harmonic index.theta
- The angle of colatitude.phi
- The angle of longitude.SphericalHarmonicException
public static double plgndr(int l, int m, double x) throws SphericalHarmonicException
l
- The order of the polynomialm
- The index of the polynomialx
- The argument.SphericalHarmonicException
public static int funcsUpTo(int order)
order
- The order up to which the number of functions is required.public static int evenFuncsUpTo(int order)
order
- The order up to which the number of functions is required.