Skip to content

Instantly share code, notes, and snippets.

@willtemperley
willtemperley / Simplify.swift
Created February 15, 2024 10:23 — forked from yageek/Simplify.swift
Simplification of a 3D polyline using the Ramer–Douglas–Peucker algorithm in Swift
//
// Simplify.swift
//
// Simplification of a 3D-polyline.
// A port of https://github.com/hgoebl/simplify-java for Swift
//
//
// The MIT License (MIT)
//
// Created by Lachlan Hurst on 10/02/2015.