Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add LineSegment type #231

Closed
schillic opened this issue Feb 10, 2018 · 3 comments
Closed

add LineSegment type #231

schillic opened this issue Feb 10, 2018 · 3 comments
Assignees
Labels
feature ➕ A new feature

Comments

@schillic
Copy link
Member

No description provided.

@schillic schillic added the feature ➕ A new feature label Feb 10, 2018
@schillic schillic self-assigned this Feb 10, 2018
@mforets
Copy link
Member

mforets commented Feb 10, 2018

in 2d? it could be implemented by holding the pair of points p1, p2, no?

@schillic
Copy link
Member Author

This is exactly the idea. I need this for the intersection of polygons. So I also need the intersection of line segments, which is why I do not want to use VPolygon here but introduce an extra type.

@mforets
Copy link
Member

mforets commented Feb 10, 2018

alright! what we can do now is:

julia> p1, p2 = zeros(2), ones(2);
julia> plot(CH(Singleton(p1), Singleton(p2)), .1)

screen shot 2018-02-10 at 07 44 49

or VPolygon([p1, p2]). for the new type it could plot the extreme points.

@schillic schillic mentioned this issue Feb 20, 2018
5 tasks
@schillic schillic added this to the Set operations for learning application milestone Feb 21, 2018
schillic added a commit that referenced this issue Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature ➕ A new feature
Projects
None yet
Development

No branches or pull requests

2 participants