logo


rendered3D
Class TreeForm

java.lang.Object
  extended by rendered3D.TreeForm

public class TreeForm
extends java.lang.Object


Field Summary
protected  float alpha
protected  float beta
 byte d_color
 float d_r
protected  float[][] T
 
Constructor Summary
TreeForm(float new_alpha, float new_beta, float new_d_r, int new_d_color)
 
Method Summary
 float get_alpha()
          get the axial rotation angle
 float get_beta()
          get the branching angle
 int mutate_color(byte color_index)
          Safely increment of decrement the color lookup table index, wrapping around from beginning to end if the index goes out of bounds
 void set_alpha(float a)
          Set the axial rotation angle
 void set_beta(float b)
          Set the branching angle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

d_r

public float d_r

d_color

public byte d_color

alpha

protected float alpha

beta

protected float beta

T

protected float[][] T
Constructor Detail

TreeForm

public TreeForm(float new_alpha,
                float new_beta,
                float new_d_r,
                int new_d_color)
Parameters:
new_alpha -
new_beta -
new_d_r -
new_d_color -
Method Detail

set_alpha

public void set_alpha(float a)
Set the axial rotation angle

Parameters:
a -

set_beta

public void set_beta(float b)
Set the branching angle

Parameters:
b -

get_alpha

public float get_alpha()
get the axial rotation angle

Returns:

get_beta

public float get_beta()
get the branching angle

Returns:

mutate_color

public int mutate_color(byte color_index)
Safely increment of decrement the color lookup table index, wrapping around from beginning to end if the index goes out of bounds

Parameters:
color_index -
Returns: