public final class Circle extends Object
circle datatype in Postgres.
Uses double to represent the coordinates.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Point |
getCenter() |
double |
getRadius() |
int |
hashCode() |
static Circle |
of(double x,
double y,
double radius)
|
static Circle |
of(Point center,
double radius)
|
String |
toString() |
public static Circle of(Point center, double radius)
center - the center pointradius - the radiusCircle objectIllegalArgumentException - if radius is nullpublic static Circle of(double x, double y, double radius)
x - the x center coordinatey - the y center coordinateradius - the radiusCircle objectpublic Point getCenter()
public double getRadius()
public boolean equals(Object obj)
Copyright © 2023. All rights reserved.