All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class berkeley.cs.dmc.rapid2d.Box

java.lang.Object
   |
   +----berkeley.cs.dmc.rapid2d.Box

public class Box
extends Object

Constructor Index

 o Box()

Method Index

 o addSeg(Segment)
Feed model into a Box a segment at a time
 o addSeg(Vec2D, Vec2D, int)
Feed model into a Box a segment at a time.
 o buildHierarchy()
 o collide(Vector, Mat2D, Vec2D, Box, Mat2D, Vec2D, Box)
 o printBox(PrintStream, int)
 o toString()

Constructors

 o Box
 public Box()

Methods

 o toString
 public String toString()
Overrides:
toString in class Object
 o addSeg
 public void addSeg(Vec2D p,
                    Vec2D q,
                    int id)
Feed model into a Box a segment at a time.

Parameters:
p - end point of segment
q - end point of segment
id - segment id number (returned in collision test)
 o addSeg
 public void addSeg(Segment seg)
Feed model into a Box a segment at a time

Parameters:
seg - the segment to add
 o buildHierarchy
 public void buildHierarchy()
 o collide
 public static int collide(Vector c,
                           Mat2D R1,
                           Vec2D T1,
                           Box b1,
                           Mat2D R2,
                           Vec2D T2,
                           Box b2)
 o printBox
 public void printBox(PrintStream out,
                      int tabstop)

All Packages  Class Hierarchy  This Package  Previous  Next  Index