public static void DrawExtrema(this Canvas canvas, ICurve curve) { foreach (Vector2 extreme in curve.Extrema()) { canvas.DrawPointMarker(extreme, extremaStroke, extremaThickness); } }