Authored by Thomas Rasch

o Added RMEuclideanDistanceBetweenProjectedPoints

... ... @@ -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);
}
... ...
... ... @@ -80,4 +80,6 @@ RMProjectedSize RMProjectedSizeMake(double width, double heigth);
RMProjectedRect RMProjectedRectZero();
double RMEuclideanDistanceBetweenProjectedPoints(RMProjectedPoint point1, RMProjectedPoint point2);
#endif
... ...