Skip to content

Polygon is sequence of segments, not points? #13

Closed
@goretkin

Description

@goretkin

struct Polygon{
Dim, T <: Real,
P <: AbstractPoint{Dim, T},
L <: AbstractVector{<: LineP{Dim, T, P}},
V <: AbstractVector{L}
} <: AbstractPolygon{Dim, T}
exterior::L
interiors::V
end

am I understanding correctly that the Polygon type is represented by an AbstractVector with eltype as LineP? I would have expected an eltype of <:AbstractPoint like in Ngon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions