So what I want to do is something like: Define a type Point that is constructed from floats passed by the user. This is supposed to store the coordinates of a point.

struct Point

x::Float64

y::Float64

end

This works well enough.

Now, I want to define a line segment that is defined as a vector of Point types which accepts two points from the user and creates a vector of 1000 points in between and assigns it to the line and constructs it.

s=Point(1,1)

t=Point(8,9)

```
struct Line::Vector{Point}
s::Point
t::Point
Line(s,t)=new([Point(s.x+i*(t.x-s.x)/1000,s.y+i*(t.y-s.y)/1000) for i=0:1000])
end
```

I can’t quite get it to work, trying variations of the code above. Could someone please guide me in the right direction?