Package toxi.geom.mesh
Class SphericalHarmonics
java.lang.Object
toxi.geom.mesh.SphericalHarmonics
- All Implemented Interfaces:
SurfaceFunction
Spherical harmonics surface evaluator based on code by Paul Bourke:
http://local.wasp.uwa.edu.au/~pbourke/geometry/sphericalh/
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomputeVertexFor
(Vec3D p, float phi, float theta) float
int
getPhiResolutionLimit
(int res) float
int
getThetaResolutionLimit
(int res)
-
Constructor Details
-
SphericalHarmonics
public SphericalHarmonics(float[] m)
-
-
Method Details
-
computeVertexFor
- Specified by:
computeVertexFor
in interfaceSurfaceFunction
-
getPhiRange
public float getPhiRange()- Specified by:
getPhiRange
in interfaceSurfaceFunction
-
getPhiResolutionLimit
public int getPhiResolutionLimit(int res) - Specified by:
getPhiResolutionLimit
in interfaceSurfaceFunction
-
getThetaRange
public float getThetaRange()- Specified by:
getThetaRange
in interfaceSurfaceFunction
-
getThetaResolutionLimit
public int getThetaResolutionLimit(int res) - Specified by:
getThetaResolutionLimit
in interfaceSurfaceFunction
-