|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Vector | |
|---|---|
| game | |
| lab4 | |
| lab5copy | |
| Uses of Vector in game |
|---|
| Methods in game that return Vector | |
|---|---|
static Vector |
Trajectory.computeGravity(int numPixels,
int t)
Compute the acceleration of gravity based on the supplied parameters, starting at rest. |
Vector |
Fireable.initialVelocity()
Initial velocity of the missile. |
| Methods in game with parameters of type Vector | |
|---|---|
void |
MovingGraphics.addGraphic(Graphic shape,
Vector delta)
Include the specified shape in this MovingBody. |
void |
MovingPicture.addPicture(java.lang.String name,
int width,
int height,
Vector offset)
Add a picture to the collection of moving objects. |
| Constructors in game with parameters of type Vector | |
|---|---|
Trajectory(Point start,
Vector initialVelocity)
Constructor compatible with last week's studio. |
|
Trajectory(Point start,
Vector initialVelocity,
Vector gravity)
Most general constructor, takes in gravity as a parameter. |
|
| Uses of Vector in lab4 |
|---|
| Methods in lab4 that return Vector | |
|---|---|
Vector |
Vector.deflectX()
|
Vector |
Vector.deflectY()
|
Vector |
Point.minus(Point other)
|
Vector |
Vector.minus(Vector other)
|
Vector |
Vector.plus(Vector other)
|
Vector |
Vector.rescale(double magnitude)
|
Vector |
Vector.scale(double factor)
|
| Methods in lab4 with parameters of type Vector | |
|---|---|
double |
DemoVectorTest.gx(Vector v)
Why did I write this method? |
double |
DemoVectorTest.gy(Vector v)
|
Vector |
Vector.minus(Vector other)
|
Vector |
Vector.plus(Vector other)
|
Point |
Point.plus(Vector v)
|
| Uses of Vector in lab5copy |
|---|
| Methods in lab5copy that return Vector | |
|---|---|
Vector |
Eyeball.getLookAtVector()
|
Vector |
EyeballMyopic.initialVelocity()
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||