|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--EDU.cmu.cs.coral.simulation.LinearObstacleSim | +--EDU.cmu.cs.coral.simulation.LineSim
Fields inherited from class EDU.cmu.cs.coral.simulation.LinearObstacleSim |
b,
center,
DEBUG,
end,
m,
mrot,
RADIUS,
start |
Constructor Summary | |
LineSim()
|
Method Summary | |
boolean |
checkCollision(Circle2 c)
determine if the object is intersecting with a specified circle. |
boolean |
checkCollision(Polygon2 p)
determine if the object is intersecting with a specified polygon. |
double |
evaluate(double x)
|
Vec2 |
getEnd()
|
Vec2 |
getStart()
|
boolean |
pointOnLine(Vec2 v)
|
Methods inherited from class EDU.cmu.cs.coral.simulation.LinearObstacleSim |
clearTrail,
draw,
draw,
drawIcon,
drawID,
drawState,
drawTrail,
getCenter,
getClosestPoint,
getID,
getPosition,
getVisionClass,
init,
init,
isObstacle,
isPickupable,
isPushable,
pickUp,
push,
putDown,
quit,
receive,
setID,
setTrailLength,
setVisionClass,
takeStep |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public LineSim()
Method Detail |
public boolean checkCollision(Circle2 c)
c
- the circle which may be intersecting the current object.public boolean checkCollision(Polygon2 p)
p
- the polygon which may be intersecting the current object.public double evaluate(double x)
public boolean pointOnLine(Vec2 v)
public Vec2 getStart()
public Vec2 getEnd()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |