edu.umd.cfar.lamp.viper.geometry
Interface HasCentroid
- All Known Implementing Classes:
- BoundingBox, Circle, ConvexPolygon, Ellipse, OrientedBox, Pnt, Polygon
- public interface HasCentroid
Interface for all geometric objects that have some
concept of a 'centroid'. It isn't that necessary
that the centroid be completely in agreement with
the geometric definition, that is, the 'center of
mass'.
- Author:
- clin
getCentroid
public Pnt getCentroid()
- Gets a copy of the centroid.
- Returns:
- the centroid of the object