|
| Domain (double left, double top, double right, double bottom) |
|
This class can be used to specify a rectangular domain using world coordinates.
If a Sprite object is assigned a Domain object this is used to restrict the sprite's movement attempting to leave the domain will cause it to either 'bounce' back or halt.
- Author
- Peter Lager
sprites.Domain.Domain |
( |
double |
left, |
|
|
double |
top, |
|
|
double |
right, |
|
|
double |
bottom |
|
) |
| |
Create a rectangular domain object using world coordinates.
- Parameters
-
left | left |
top | top |
right | right |
bottom | bottom |
The documentation for this class was generated from the following file:
- /Users/peter/git/sprites-repos/Sprites 4P/src/sprites/Domain.java