Skip to content

Instantly share code, notes, and snippets.

View federicodangelo's full-sized avatar

Federico D'Angelo federicodangelo

View GitHub Profile
@federicodangelo
federicodangelo / LineSimplification.cs
Created September 26, 2018 18:42
Iterative version of Ramer–Douglas–Peucker line simplification algorithm
using System;
using System.Collections.Generic;
using System.Drawing;
//https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm
namespace Math.Helpers
{
public static class RamerDouglasPeuckerAlgorithm
{