Maintainer | diagrams-discuss@googlegroups.com |
---|---|
Safe Haskell | None |
Some miscellaneous utilities for working with points.
- centroid :: (VectorSpace v, Fractional (Scalar v)) => [Point v] -> Point v
Documentation
centroid :: (VectorSpace v, Fractional (Scalar v)) => [Point v] -> Point vSource
The centroid of a set of n points is their sum divided by n.