...
|
...
|
@@ -26,6 +26,7 @@ |
|
|
// POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
#import "RMFoundation.h"
|
|
|
#import <math.h>
|
|
|
|
|
|
bool RMProjectedPointEqualToProjectedPoint(RMProjectedPoint point1, RMProjectedPoint point2)
|
|
|
{
|
...
|
...
|
@@ -125,3 +126,11 @@ RMProjectedRect RMProjectedRectZero() |
|
|
{
|
|
|
return RMProjectedRectMake(0.0, 0.0, 0.0, 0.0);
|
|
|
}
|
|
|
|
|
|
double RMEuclideanDistanceBetweenProjectedPoints(RMProjectedPoint point1, RMProjectedPoint point2)
|
|
|
{
|
|
|
double xd = point2.x - point1.x;
|
|
|
double yd = point2.y - point1.y;
|
|
|
|
|
|
return sqrt(xd*xd + yd*yd);
|
|
|
} |
...
|
...
|
|