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
-
Box()
-
-
addSeg(Segment)
- Feed model into a Box a segment at a time
-
addSeg(Vec2D, Vec2D, int)
- Feed model into a Box a segment at a time.
-
buildHierarchy()
-
-
collide(Vector, Mat2D, Vec2D, Box, Mat2D, Vec2D, Box)
-
-
printBox(PrintStream, int)
-
-
toString()
-
Box
public Box()
toString
public String toString()
- Overrides:
- toString in class Object
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)
addSeg
public void addSeg(Segment seg)
- Feed model into a Box a segment at a time
- Parameters:
- seg - the segment to add
buildHierarchy
public void buildHierarchy()
collide
public static int collide(Vector c,
Mat2D R1,
Vec2D T1,
Box b1,
Mat2D R2,
Vec2D T2,
Box b2)
printBox
public void printBox(PrintStream out,
int tabstop)
All Packages Class Hierarchy This Package Previous Next Index