Skip to content

Commit

Permalink
fix: subtype operator in unpack_polys
Browse files Browse the repository at this point in the history
  • Loading branch information
fjebaker committed Feb 3, 2025
1 parent b319b2f commit 0ce1454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corona/profiles/voronoi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ end
getproperarea(vdp::VoronoiDiscProfile, m::AbstractMetric) =
map(p -> getproperarea(p, m), vdp.polys)

function unpack_polys(polys::AbstractVector{GeometryBasics.Polygon{2,T}}) where {T}
function unpack_polys(polys::AbstractVector{<:GeometryBasics.Polygon{2,T}}) where {T}
map(polys) do poly
map(SVector{2,T}, getpoints(poly))
end
Expand Down

0 comments on commit 0ce1454

Please sign in to comment.