|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Vector2D | |
---|---|
cs2110.collision | This package contains classes for the CS 2110 Collision Detector |
Uses of Vector2D in cs2110.collision |
---|
Fields in cs2110.collision declared as Vector2D | |
---|---|
Vector2D |
BoundingBox.lower
The corner of the bounding box with the smaller x,y coordinates. |
Vector2D |
BoundingBox.upper
The corner of the bounding box with the larger x,y coordinates. |
Methods in cs2110.collision that return Vector2D | |
---|---|
Vector2D |
Vector2D.add(Vector2D a)
Return the result of adding this vector to a. |
static Vector2D |
Vector2D.add(Vector2D a,
Vector2D b)
Return the result of adding a and b. |
Vector2D |
BoundingBox.getCenter()
Return the center of this bounding box. |
Vector2D |
Vector2D.minus(Vector2D b)
Subtract b from this vector. |
Methods in cs2110.collision with parameters of type Vector2D | |
---|---|
Vector2D |
Vector2D.add(Vector2D a)
Return the result of adding this vector to a. |
static Vector2D |
Vector2D.add(Vector2D a,
Vector2D b)
Return the result of adding a and b. |
void |
Vector2D.addOn(Vector2D v)
Add v to this vector. |
boolean |
Shape.contains(Vector2D p)
Return true iff this shape contains point p. |
boolean |
BoundingBox.contains(Vector2D p)
Return true iff this bounding box contains p. |
boolean |
BlockTree.contains(Vector2D p)
Return true iff this collection of blocks contains point p. |
boolean |
Block.contains(Vector2D p)
Return true iff this block contains point p |
void |
Shape.displace(Vector2D v)
(Further) displace this shape by displacement vector v. |
BoundingBox |
BoundingBox.displaced(Vector2D d)
Return the result of displacing this bounding box by d. |
void |
Block.display(java.awt.Graphics g,
double scale,
Vector2D d,
boolean clicked,
boolean overlaps)
Draw this block using g, which must be a Graphics2D object. |
static double |
Vector2D.dist(Vector2D a,
Vector2D b)
Return the Euclidean distance between a and b. |
Vector2D |
Vector2D.minus(Vector2D b)
Subtract b from this vector. |
static boolean |
Block.overlaps(Block b,
Vector2D u,
Block c,
Vector2D v)
Return true iff block b displaced by u overlaps block c displaced by v |
boolean |
BlockTree.overlaps(Vector2D thisD,
BlockTree t,
Vector2D d)
Return true iff (this tree displaced by thisD) and (tree t displaced by d) overlap. |
java.lang.String |
BlockTree.toString(Vector2D d)
Return a represenation of d |
Constructors in cs2110.collision with parameters of type Vector2D | |
---|---|
BoundingBox(Vector2D lower,
Vector2D upper)
Constructor: An instance with lower as smaller coordinates and upper as larger coordinates. |
|
Vector2D(Vector2D p)
Constructor: A copy of p. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |