001// Licensed under the MIT license. See LICENSE file in the project root for full license information.
002
003package de.bytefish.pgbulkinsert.pgsql.model.geometric;
004
005public class Circle {
006
007    private final Point center;
008    private final double radius;
009
010    public Circle(Point center, double radius) {
011        if(center == null) {
012            throw new IllegalArgumentException("center");
013        }
014        this.center = center;
015        this.radius = radius;
016    }
017
018    public Point getCenter() {
019        return center;
020    }
021
022    public double getRadius() {
023        return radius;
024    }
025
026}