|
Etch-a-sketch Problem Set Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectetchasketch.Impact
An immutable object desrcribing an impact with a Barrier (Future
use).
| Constructor Summary | |
Impact(DotPoint start,
DotPoint attempt,
DotPoint impact,
DotPoint result,
double velX,
double velY)
Creates a new instance of Impact. |
|
| Method Summary | |
DotPoint |
getAttemptPoint()
The point we tried to reach that caused an impact. |
DotPoint |
getImpactPoint()
Findout where the impact occured. |
double |
getNewVelX()
Find out what our x velocity is after the impact. |
double |
getNewVelY()
Find out what our new Y velocity is. |
DotPoint |
getResultPoint()
Find out where we wound up after the impact. |
DotPoint |
getStartPoint()
Find out where we started from before the impact occured. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Impact(DotPoint start,
DotPoint attempt,
DotPoint impact,
DotPoint result,
double velX,
double velY)
start - The point we started from before the impact occuredattempt - The point we were attempting to reach when the impact occuredimpact - The point at which the impact occuredresult - The point where we wound up after the impactvelX - the new x velocity after the impactvelY - the new y velocity after the impact| Method Detail |
public DotPoint getStartPoint()
public DotPoint getAttemptPoint()
public DotPoint getResultPoint()
public DotPoint getImpactPoint()
public double getNewVelX()
public double getNewVelY()
|
Etch-a-sketch Problem Set Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||