Skip to content

Commit

Permalink
Fix Polygon docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasf committed Mar 20, 2024
1 parent 6fec5a8 commit a56c5fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SwiftSCAD/Shapes/2D/Polygon/Polygon.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation

/// Represents a two-dimensional shape defined by a series of connected points.
/// It supports initialization from an array of `Vector2D` points or a `BezierPath`.
/// It supports initialization from an array of ``Vector2D`` points or a two-dimensional ``BezierPath``.
///
/// - Example:
/// - Creating a Polygon from points:
Expand All @@ -10,7 +10,7 @@ import Foundation
/// ```
/// - Creating a Polygon from a Bezier path:
/// ```
/// let bezierPath = BezierPath(startPoint: .zero)
/// let bezierPath = BezierPath2D(startPoint: .zero)
/// .addingCubicCurve(controlPoint1: [10, 65], controlPoint2: [55, -20], end: [60, 40])
/// let polygonFromBezierPath = Polygon(bezierPath)
/// ```
Expand Down

0 comments on commit a56c5fc

Please sign in to comment.