biosim.core.sim
Class RectObstacle

java.lang.Object
  extended by biosim.core.sim.RectObstacle
All Implemented Interfaces:
Obstacle

public class RectObstacle
extends java.lang.Object
implements Obstacle


Field Summary
 double height
           
 double width
           
 
Constructor Summary
RectObstacle(double width, double height)
           
 
Method Summary
 sim.util.Double2D closestPoint(sim.util.Double2D p, sim.util.Double2D o)
           
 sim.util.Double2D toroidalClosestPoint(sim.util.Double2D p, sim.util.Double2D o, sim.field.continuous.Continuous2D field)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

width

public double width

height

public double height
Constructor Detail

RectObstacle

public RectObstacle(double width,
                    double height)
Method Detail

closestPoint

public sim.util.Double2D closestPoint(sim.util.Double2D p,
                                      sim.util.Double2D o)
Specified by:
closestPoint in interface Obstacle

toroidalClosestPoint

public sim.util.Double2D toroidalClosestPoint(sim.util.Double2D p,
                                              sim.util.Double2D o,
                                              sim.field.continuous.Continuous2D field)
Specified by:
toroidalClosestPoint in interface Obstacle