Sprites for Processing  V2.1
 All Classes Functions Variables
sprites.Domain Class Reference

Public Member Functions

 Domain (double left, double top, double right, double bottom)
 

Public Attributes

double left
 

Detailed Description

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

Constructor & Destructor Documentation

sprites.Domain.Domain ( double  left,
double  top,
double  right,
double  bottom 
)

Create a rectangular domain object using world coordinates.

Parameters
leftleft
toptop
rightright
bottombottom

The documentation for this class was generated from the following file: