public final class S2Loop extends Object implements S2Region, Comparable<S2Loop>
| Modifier and Type | Field and Description |
|---|---|
static double |
MAX_INTERSECTION_ERROR |
| Constructor and Description |
|---|
S2Loop(List<S2Point> vertices) |
S2Loop(S2Cell cell) |
S2Loop(S2Cell cell,
S2LatLngRect bound) |
S2Loop(S2Loop src) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(S2Loop other) |
boolean |
contains(S2Cell cell) |
boolean |
contains(S2Loop b) |
boolean |
contains(S2Point p) |
boolean |
containsNested(S2Loop b) |
int |
containsOrCrosses(S2Loop b) |
int |
depth() |
double |
getArea() |
S2AreaCentroid |
getAreaAndCentroid() |
S2Cap |
getCapBound() |
S2Point |
getCentroid() |
S1Angle |
getDistance(S2Point p) |
S2LatLngRect |
getRectBound() |
boolean |
intersects(S2Loop b) |
void |
invert() |
boolean |
isHole() |
boolean |
isNormalized() |
boolean |
isValid() |
static boolean |
isValid(List<S2Point> vertices) |
boolean |
mayIntersect(S2Cell cell) |
void |
normalize() |
int |
numVertices() |
void |
setDepth(int depth) |
int |
sign() |
String |
toString() |
S2Point |
vertex(int i) |
public S2Loop(S2Cell cell)
public S2Loop(S2Cell cell, S2LatLngRect bound)
public S2Loop(S2Loop src)
public int depth()
public void setDepth(int depth)
public boolean isHole()
public int sign()
public int numVertices()
public S2Point vertex(int i)
public int compareTo(S2Loop other)
public boolean isNormalized()
public void normalize()
public void invert()
public S2AreaCentroid getAreaAndCentroid()
public double getArea()
public S2Point getCentroid()
public boolean contains(S2Loop b)
public boolean intersects(S2Loop b)
public boolean containsNested(S2Loop b)
public int containsOrCrosses(S2Loop b)
public S2Cap getCapBound()
public S2LatLngRect getRectBound()
public boolean contains(S2Cell cell)
public boolean mayIntersect(S2Cell cell)
public boolean contains(S2Point p)
public boolean isValid()
public String toString()
Copyright © 2017. All rights reserved.