barsuift.simLife.j3d.tree
Class TreeLeaf3DStateFactory

java.lang.Object
  extended by barsuift.simLife.j3d.tree.TreeLeaf3DStateFactory

public class TreeLeaf3DStateFactory
extends java.lang.Object


Constructor Summary
TreeLeaf3DStateFactory()
           
 
Method Summary
 TreeLeaf3DState createNewTreeLeaf3DState(javax.vecmath.Point3d leafAttachPoint)
          Create a new leaf3D state with : the given attach point initial end point 1 : (-0.02±0.01, -0.04±0.01, 0) initial end point 2 : (0.02±0.01, -0.04±0.01, 0) end point 1 : initial end point 1 end point 2 : initial end point 2 rotation : a random number between 0 and 2 PI
 TreeLeaf3DState createRandomTreeLeaf3DState(javax.vecmath.Point3d leafAttachPoint)
          Create a random leaf3D state with : the given attach point initial end point 1 : (-0.02±0.01, -0.04±0.01, 0) initial end point 2 : (0.02±0.01, -0.04±0.01, 0) end point 1 : 10 * initial end point 1 end point 2 : 10 * initial end point 2 rotation : a random number between 0 and 2 PI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeLeaf3DStateFactory

public TreeLeaf3DStateFactory()
Method Detail

createRandomTreeLeaf3DState

public TreeLeaf3DState createRandomTreeLeaf3DState(javax.vecmath.Point3d leafAttachPoint)
Create a random leaf3D state with :


createNewTreeLeaf3DState

public TreeLeaf3DState createNewTreeLeaf3DState(javax.vecmath.Point3d leafAttachPoint)
Create a new leaf3D state with :



Copyright © 2010. All Rights Reserved.