Package com.luciad.geometries
Class CircleByCenterPoint
java.lang.Object
com.luciad.geometries.Geometry
com.luciad.geometries.Curve
com.luciad.geometries.Ring
com.luciad.geometries.CircleByCenterPoint
- All Implemented Interfaces:
AutoCloseable
Represents a circle defined by a center point and a radius.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
finalize()
Returns the center of the circle.double
Returns the radius of the circle.moveTo
(Coordinate location) Returns a new CircleByCenterPoint instance which is moved to the new coordinate location.translate
(Coordinate translation) Returns a new CircleByCenterPoint instance with the translation vector applied.Methods inherited from class com.luciad.geometries.Curve
computePoint, getLength2D
Methods inherited from class com.luciad.geometries.Geometry
getBounds, getReference
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classRing
-
getCenter
Returns the center of the circle.- Returns:
- the center of the circle.
-
getRadius
public double getRadius()Returns the radius of the circle.If the coordinate reference is a geodetic reference, this is expressed in meters. Otherwise the unit of the reference is used.
- Returns:
- the radius of the circle.
-
translate
Returns a new CircleByCenterPoint instance with the translation vector applied.- Parameters:
translation
- The translation vector.- Returns:
- A new, translated geometry.
- Since:
- 2025.0
-
moveTo
Returns a new CircleByCenterPoint instance which is moved to the new coordinate location.- Parameters:
location
- The new location to move this circle to.- Returns:
- A new, moved geometry.
- Since:
- 2025.0
-