toxi.geom.mesh
Class SphericalHarmonics

java.lang.Object
  extended by toxi.geom.mesh.SphericalHarmonics
All Implemented Interfaces:
SurfaceFunction

public class SphericalHarmonics
extends java.lang.Object
implements SurfaceFunction

Spherical harmonics surface evaluator based on code by Paul Bourke: http://local.wasp.uwa.edu.au/~pbourke/geometry/sphericalh/


Constructor Summary
SphericalHarmonics(float[] m)
           
 
Method Summary
 Vec3D computeVertexFor(Vec3D p, float phi, float theta)
           
 float getPhiRange()
           
 int getPhiResolutionLimit(int res)
           
 float getThetaRange()
           
 int getThetaResolutionLimit(int res)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SphericalHarmonics

public SphericalHarmonics(float[] m)
Method Detail

computeVertexFor

public Vec3D computeVertexFor(Vec3D p,
                              float phi,
                              float theta)
Specified by:
computeVertexFor in interface SurfaceFunction

getPhiRange

public float getPhiRange()
Specified by:
getPhiRange in interface SurfaceFunction

getPhiResolutionLimit

public int getPhiResolutionLimit(int res)
Specified by:
getPhiResolutionLimit in interface SurfaceFunction

getThetaRange

public float getThetaRange()
Specified by:
getThetaRange in interface SurfaceFunction

getThetaResolutionLimit

public int getThetaResolutionLimit(int res)
Specified by:
getThetaResolutionLimit in interface SurfaceFunction