syn3d.util
Class GeodeMaker

java.lang.Object
  extended by syn3d.util.GeodeMaker

public class GeodeMaker
extends java.lang.Object

This class Generates geodes of any order.

Author:
Nicolas Brodu

Field Summary
static double golden_ratio
           
static int[] icosaedron_triangles_index
           
static double[] icosaedron_vertices
           
static double norm
           
 
Constructor Summary
GeodeMaker()
           
 
Method Summary
static double[] combine(double[] p1, double[] p2, double angle)
           
static float[] createGeode(int ndiv)
           
static double sproduct(double[] p1, double[] p2)
           
static double[] vproduct(double[] p1, double[] p2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

golden_ratio

public static double golden_ratio

norm

public static double norm

icosaedron_vertices

public static double[] icosaedron_vertices

icosaedron_triangles_index

public static int[] icosaedron_triangles_index
Constructor Detail

GeodeMaker

public GeodeMaker()
Method Detail

vproduct

public static double[] vproduct(double[] p1,
                                double[] p2)

sproduct

public static double sproduct(double[] p1,
                              double[] p2)

combine

public static double[] combine(double[] p1,
                               double[] p2,
                               double angle)

createGeode

public static float[] createGeode(int ndiv)