Class Geometry


  • public class Geometry
    extends Object
    Utilities for geometry.
    Since:
    4.0
    • Method Detail

      • barycenter

        public static <S extends Space,​P extends Point<S,​P>> P barycenter​(List<P> points)
        Compute the barycenter of n points.
        Type Parameters:
        S - Type of the space.
        P - Type of the points in space.
        Parameters:
        points - points generating the barycenter
        Returns:
        barycenter of the points