public class Shape extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Shape.Point |
Modifier and Type | Method and Description |
---|---|
static Shape |
box(Shape.Point bottomLeft,
Shape.Point upperRight) |
static Shape |
center(Shape.Point center,
double radius) |
static Shape |
centerSphere(Shape.Point center,
double radius) |
String |
getGeometry() |
Shape.Point[] |
getPoints() |
static Shape |
polygon(Shape.Point... points) |
com.mongodb.DBObject |
toDBObject() |
public String getGeometry()
public Shape.Point[] getPoints()
public com.mongodb.DBObject toDBObject()
public static Shape box(Shape.Point bottomLeft, Shape.Point upperRight)
public static Shape center(Shape.Point center, double radius)
public static Shape centerSphere(Shape.Point center, double radius)
public static Shape polygon(Shape.Point... points)
Copyright © 2016. All rights reserved.