public class LatLngBounds extends Object implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
LatLngBounds.Builder
여러 좌표(
LatLng 객체)들을 모두 포함하는 최소한의 사각형 영역을 생성하는 빌더 클래스. |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<LatLngBounds> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
LatLngBounds(LatLng southWest,
LatLng northEast)
남서쪽과 북동쪽 좌표를 이용하여 사각형 영역을 생성합니다.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(LatLng latLng)
현재 사각형 영역에 특정 좌표가 포함되어 있는지 여부를 반환합니다.
|
boolean |
contains(LatLngBounds other)
현재 사각형 영역에 특정 사각형 영역이 포함되어 있는지 여부를 반환합니다.
|
int |
describeContents() |
boolean |
equals(Object o) |
static LatLngBounds |
from(double northLatitude,
double eastLongitude,
double southLatitude,
double westLongitude)
최북단/최남단의 위도, 최동단/최서단의 경도를 이용하여
LatLngBounds 객체를 생성합니다. |
LatLng |
getCenter()
사각형 영역의 중심점 좌표를 반환합니다.
|
double |
getEastLongitude()
최동단의 경도를 반환합니다.
|
LatLng |
getNorthEast()
북동쪽의 좌표를 반환합니다.
|
double |
getNorthLatitude()
최북단의 위도를 반환합니다.
|
LatLng |
getNorthWest()
북서쪽의 좌표를 반환합니다.
|
LatLng |
getSouthEast()
남동쪽의 좌표를 반환합니다.
|
double |
getSouthLatitude()
최남단의 위도를 반환합니다.
|
LatLng |
getSouthWest()
남서쪽의 좌표를 반환합니다.
|
double |
getWestLongitude()
최서단의 경도를 반환합니다.
|
int |
hashCode() |
LatLngBounds |
intersect(LatLngBounds other)
현재 사각형 영역과 다른 사각형 영역을 교차했을 때 발생하는 최소한의 사각형 영역을 반환합니다.
|
boolean |
isEmpty()
사각형 영역이 비어있는지 여부를 반환합니다.
|
boolean |
isValid()
사각형 영역이 유효한지 여부를 반환합니다.
|
String |
toString() |
LatLngBounds |
union(LatLngBounds other)
현재 사각형 영역과 다른 사각형 영역을 합친 최소한의 사각형 영역을 반환합니다.
|
void |
writeToParcel(Parcel out,
int flags) |
public static final Parcelable.Creator<LatLngBounds> CREATOR
public boolean isValid()
사각형 영역이 유효한지 여부를 반환합니다.
사각형 영역을 구성하는 북동쪽, 남서쪽 좌표가 모두 유효한 좌표이면true
를 반환합니다.public boolean isEmpty()
사각형 영역이 비어있는지 여부를 반환합니다. 아래와 같은 조건일 때 false
를 반환합니다.
isValid()
== false
)public LatLng getCenter()
public double getNorthLatitude()
public double getSouthLatitude()
public double getEastLongitude()
public double getWestLongitude()
public LatLng getSouthWest()
public LatLng getNorthEast()
public LatLng getSouthEast()
public LatLng getNorthWest()
public static LatLngBounds from(double northLatitude, double eastLongitude, double southLatitude, double westLongitude)
LatLngBounds
객체를 생성합니다.northLatitude
- 최북단의 위도eastLongitude
- 최동단의 경도southLatitude
- 최남단의 위도westLongitude
- 최서단의 경도LatLngBounds
객체public boolean contains(LatLng latLng)
latLng
- 현재 사각형 영역에 포함되어 있는지 확인할 좌표public boolean contains(LatLngBounds other)
other
- 현재 사각형 영역에 포함되는지 확인할 다른 사각형 영역public LatLngBounds union(LatLngBounds other)
other
- 다른 사각형 영역public LatLngBounds intersect(LatLngBounds other)
other
- 다른 사각형 영역null
)public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel out, int flags)
writeToParcel
in interface Parcelable
© 2019. iNavi Systems Corp. All rights reserved.