NMGLatLngBounds
@interface NMGLatLngBounds : NSObject <NMGBoundable>
남서쪽과 북동쪽 두 위경도 좌표로 이루어진 최소 경계 사각형 영역을 나타내는 클래스.
-
영역의 위도(세로) 폭. 도 단위.
Declaration
Objective-C
@property (nonatomic, readonly) double latSpan;Swift
var latSpan: Double { get } -
영역의 경도(가로) 폭. 도 단위.
Declaration
Objective-C
@property (nonatomic, readonly) double lngSpan;Swift
var lngSpan: Double { get } -
최남단의 위도.
Declaration
Objective-C
@property (nonatomic, readonly) double southWestLat;Swift
var southWestLat: Double { get } -
최서단의 경도.
Declaration
Objective-C
@property (nonatomic, readonly) double southWestLng;Swift
var southWestLng: Double { get } -
최북단의 위도.
Declaration
Objective-C
@property (nonatomic, readonly) double northEastLat;Swift
var northEastLat: Double { get } -
최동단의 위도.
Declaration
Objective-C
@property (nonatomic, readonly) double northEastLng;Swift
var northEastLng: Double { get } -
남서쪽과 북동쪽 좌표로부터 객체를 생성합니다.
Declaration
Objective-C
+ (nonnull instancetype)latLngBoundsWithSouthWestLat:(double)southWestLat southWestLng:(double)southWestLng northEastLat:(double)northEastLat northEastLng:(double)northEastLng;Swift
convenience init(southWestLat: Double, southWestLng: Double, northEastLat: Double, northEastLng: Double)Parameters
southWestLat남서쪽 좌표의 위도
southWestLng남서쪽 좌표의 경도
northEastLat북동쪽 좌표의 위도
northEastLng북동쪽 좌표의 경도
Return Value
NMGLatLngBounds객체 -
영역이 다른 영역을 포함하는지 여부를 반환합니다.
Declaration
Objective-C
- (BOOL)hasBounds:(nonnull NMGLatLngBounds *)bounds;Swift
func hasBounds(_ bounds: NMGLatLngBounds) -> BoolParameters
bounds포함되는지 확인할 영역.
Return Value
포함할 경우
YES, 그렇지 않을 경우NO. -
영역이 다른 영역과 교차하는지 여부를 반환합니다.
Declaration
Objective-C
- (BOOL)isIntersect:(nonnull NMGLatLngBounds *)bounds;Swift
func isIntersect(_ bounds: NMGLatLngBounds) -> BoolParameters
bounds교차하는지 확인할 영역.
Return Value
교차할 경우
YES, 그렇지 않을 경우NO. -
영역과 다른 영역 간의 교차 영역을 반환합니다.
Declaration
Objective-C
- (nullable NMGLatLngBounds *)intersectionWithBounds: (nonnull NMGLatLngBounds *)bounds;Swift
func intersection(withBounds bounds: NMGLatLngBounds) -> NMGLatLngBounds?Parameters
bounds다른 영역.
Return Value
교차 영역. 두 영역이 교차하지 않을 경우
nil. -
현재 영역과 다른 영역을 모두 포함하는 최소한의 영역을 구합니다.
Declaration
Objective-C
- (nonnull NMGLatLngBounds *)unionBounds:(nonnull NMGLatLngBounds *)bounds;Swift
func unionBounds(_ bounds: NMGLatLngBounds) -> NMGLatLngBoundsParameters
bounds다른 영역.
Return Value
두 영역을 모두 포함하는 영역.
Install in Dash
NMGLatLngBounds Class Reference