Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
RangeSearch/kdtest/BoundingBox.pde
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
21 lines (20 sloc)
351 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BoundingBox { | |
float x1, x2, y1, y2; | |
public BoundingBox(float _x1, float _x2, float _y1, float _y2) | |
{ | |
x1 = _x1; | |
x2 = _x2; | |
y1 = _y1; | |
y2 = _y2; | |
} | |
void draw() | |
{ | |
pushStyle(); | |
stroke(0); | |
line(x1, y1, x2, y1); | |
line(x1, y2, x2, y2); | |
line(x1, y1, x1, y2); | |
line(x2, y1, x2, y2); | |
popStyle(); | |
} | |
} | |