Skip to content

Commit 9662e30

Browse files
committed
rfac: Reorder init.
1 parent 53c1484 commit 9662e30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/SwiftPlot/Renderer.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,6 @@ public struct Polygon {
199199
public var p1: Point, p2: Point, p3: Point
200200
public var tail: [Point]
201201

202-
public init() {
203-
self.init(.zero, .zero, .zero)
204-
}
205-
206202
public init(_ p1: Point, _ p2: Point, _ p3: Point, tail: [Point] = []) {
207203
(self.p1, self.p2, self.p3) = (p1, p2, p3)
208204
self.tail = tail
@@ -211,6 +207,10 @@ public struct Polygon {
211207
public init(_ p1: Point, _ p2: Point, _ p3: Point, tail: ArraySlice<Point>) {
212208
self.init(p1, p2, p3, tail: Array(tail))
213209
}
210+
211+
public init() {
212+
self.init(.zero, .zero, .zero)
213+
}
214214
}
215215

216216
extension Polygon: Sequence {

0 commit comments

Comments
 (0)