From cc01781db7281032f8c0c5eae54281187522a861 Mon Sep 17 00:00:00 2001 From: Asheem Mamoowala Date: Mon, 18 Dec 2017 17:11:43 -0800 Subject: [ios, macos] Projection Matrix and LatLng projection to Mercator methods --- platform/darwin/src/NSValue+MGLAdditions.m | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'platform/darwin/src/NSValue+MGLAdditions.m') diff --git a/platform/darwin/src/NSValue+MGLAdditions.m b/platform/darwin/src/NSValue+MGLAdditions.m index 1383056944..b32445dab7 100644 --- a/platform/darwin/src/NSValue+MGLAdditions.m +++ b/platform/darwin/src/NSValue+MGLAdditions.m @@ -14,6 +14,16 @@ return coordinate; } ++ (instancetype)valueWithMGLMapPoint:(MGLMapPoint)point { + return [self valueWithBytes:&point objCType:@encode(MGLMapPoint)]; +} + +-(MGLMapPoint) MGLMapPointValue { + MGLMapPoint point; + [self getValue:&point]; + return point; +} + + (instancetype)valueWithMGLCoordinateSpan:(MGLCoordinateSpan)span { return [self valueWithBytes:&span objCType:@encode(MGLCoordinateSpan)]; } -- cgit v1.2.1