![]() |
WhirlyGlobe
1.2
A 3D interactive globe toolkit for iOS
|
#include <WhirlyVector.h>
Public Member Functions | |
Mbr () | |
Construct empty, which is marked as invalid. | |
Mbr (Point2f ll, Point2f ur) | |
Construct with a lower left and upper right point. | |
Mbr (const std::vector< Point2f > &pts) | |
Construct from the MBR of a vector of points. | |
const Point2f & | ll () const |
Lower left corner. | |
Point2f & | ll () |
const Point2f & | ur () const |
Upper right corner. | |
Point2f & | ur () |
bool | valid () const |
Check validity. | |
float | area () const |
Calculate area. | |
void | addPoint (Point2f pt) |
Extend the MBR by the given point. | |
bool | overlaps (const Mbr &that) const |
See if this Mbr overlaps the other one. | |
bool | inside (Point2f pt) const |
Check if the given 2d point is inside this MBR. | |
Protected Attributes | |
Point2f | pt_ll |
Point2f | pt_ur |
Bounding rectangle.