I want to have a struct to represent a 3D polygonal chain. I have a struct Point that represents a point in 3D, so my struct must basically be a tuple of points as chains will not increase in number of segments. I need to have the struct because I will define and work with methods exclusive for polygonal chains.
I have it defined as a parametric type in the following way:
struct PolygonalChain{N}
endpoints::NTuple{N,Point}
end
Where N is supposed to be an integer. I am not sure if this is the best way. I know that parameters in parametric types are supposed to be DataTypes and not concrete instances of types. I am not sure if I could just use Tuples in a smarter way and not define any struct