Metron icon indicating copy to clipboard operation
Metron copied to clipboard

Geometry, simplified.

Results 6 Metron issues
Sort by recently updated
recently updated
newest added

Confirming that `LineSegment.intersection(with:)` may return `nil` for valid intersection cases: ```swift let s1 = LineSegment(a: .init(x: 187.50440979003906, y: 543.5147094726562), b: .init(x: 333.1461486816406, y: -109.8446273803711)) let s2 = LineSegment(a: .init(x: 0,...

My polygon CGPoints: (0.0, 0.0), (0, 4.6849846839904785), (-3.7979183197021484, 8.482921600341797), (-8.482903480529785, 8.482928276062012), (-13.167887687683105, 8.48293399810791), (-16.965824127197266, 4.685009002685547), (-16.965829849243164, 0), (-16.965837478637695, -4.684959888458252), (-13.167911529541016, -8.48289680480957), (-8.482927322387695, -8.482903480529785), (-3.7979419231414795, -8.482909202575684), (0, -4.6849846839904785), (0.0, 0.0) My...

let lineSegment1 = Metron.LineSegment(a: CGPoint(x: 5.203594207763672, y: 3.6903457641601562), b: CGPoint(x: -9.671459197998047, y: 9.507403373718262)) let lineSegment2 = Metron.LineSegment(a: CGPoint(x: (3.9301047325134277), y: 3.930098295211792), b: CGPoint(x: 3.930110216140747, y: 8.778124809265137)) let intersection = lineSegment1.intersection(with:...

Metron is a lovely little library and has saved me a ton of time! Circle works for some cases, but not for ellipses. Seeing this officially supported would be great.

feature request

If you should choose to pursue implementing a Bezier cubic curve, my repository CeranPaul/SketchCurves has class "Cubic" that could be helpful to you. I haven't spent any time on a...

feature request