Function rgeometry::algorithms::polygonization::two_opt_moves[][src]

pub fn two_opt_moves<T, R: ?Sized>(
    pts: Vec<Point<T, 2>>,
    rng: &mut R
) -> Result<Polygon<T>, Error> where
    T: PolygonScalar + Debug,
    R: Rng
Expand description

$O(n^4)$ Generate a random, valid polygon from a set of points.