sexi.comp
Class Trunk

java.lang.Object
  |
  +--sexi.comp.Trunk
All Implemented Interfaces:
java.io.Serializable

public class Trunk
extends java.lang.Object
implements java.io.Serializable

This class represent a trunk of tree

See Also:
Serialized Form

Constructor Summary
Trunk()
           
 
Method Summary
 float getBranchHeight()
           
 float getDBH()
           
 float getTrunkBranchHeight()
           
 float getTrunkHeight()
           
 boolean isIntersect(Ray ray, java.awt.geom.Point2D location, float altitude)
           
 boolean isIntersect(Ray ray, java.awt.geom.Point2D trunkLocation, java.awt.geom.Point2D crownLocation, float altitude)
           
 void setBranchHeight(float d)
           
 void setDBH(float d)
           
 void setHeight(float trunkHeight, float branchHeight)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trunk

public Trunk()
Method Detail

setDBH

public void setDBH(float d)

getDBH

public float getDBH()

setHeight

public void setHeight(float trunkHeight,
                      float branchHeight)

setBranchHeight

public void setBranchHeight(float d)

getTrunkHeight

public float getTrunkHeight()

getBranchHeight

public float getBranchHeight()

getTrunkBranchHeight

public float getTrunkBranchHeight()

isIntersect

public boolean isIntersect(Ray ray,
                           java.awt.geom.Point2D trunkLocation,
                           java.awt.geom.Point2D crownLocation,
                           float altitude)

isIntersect

public boolean isIntersect(Ray ray,
                           java.awt.geom.Point2D location,
                           float altitude)