public class Circle2D extends Object
LargestInscribedCircle
Constructor and Description |
---|
Circle2D(Point2D center,
double radius)
Creates a new Circle from a center and a radius.
|
Modifier and Type | Method and Description |
---|---|
double |
area() |
Point2D |
getCenter() |
double |
getRadius() |
double |
perimeter() |
public Circle2D(Point2D center, double radius)
center
- the center of the circleradius
- the radius of the circlepublic double area()
public double perimeter()
public Point2D getCenter()
public double getRadius()
Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.