Skip to content

Commit 89d8ba5

Browse files
committed
Document units for area, surfaceArea, and volume measurements
1 parent 85fb726 commit 89d8ba5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/Cadova/Values/Measurements.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public extension Measurements {
4040
}
4141

4242
public extension Measurements2D {
43-
/// The total area of the 2D geometry.
43+
/// The total area of the 2D geometry, in square millimeters (mm²).
4444
var area: Double { concrete.sum(\.area) }
4545

4646
/// The number of contours (closed paths) in the geometry.
@@ -54,10 +54,10 @@ public extension Measurements2D {
5454
}
5555

5656
public extension Measurements3D {
57-
/// The total surface area of the 3D geometry.
57+
/// The total surface area of the 3D geometry, in square millimeters (mm²).
5858
var surfaceArea: Double { concrete.sum(\.surfaceArea) }
5959

60-
/// The total volume enclosed by the 3D geometry.
60+
/// The total volume enclosed by the 3D geometry, in cubic millimeters (mm³).
6161
var volume: Double { concrete.sum(\.volume) }
6262

6363
/// The total number of edges in the geometry.

0 commit comments

Comments
 (0)