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()
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Trunk
public Trunk()
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)