Sorry, I’m new to Julia and I have a little conflict with the structures, for example if I have 2 structures corresponding to a polygon and a segment.
tstruct segment
first_vertex::Array
second_vertex::Array
long::Real
end
struct poligon
vertex::Union{Array, Array, Array}
segment::Union{Array, Array, Array}
perimetrer::Real
area::Real
end
And I would like to make a couple of functions that take as arguments for Segment, the initial vertex and the final vertex of a segment, and for the Polygon function, that take as arguments an array of vertices.
How i do that?