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 Triangle2d.arrowhead function? #152

Open
ianmackenzie opened this issue Jun 23, 2021 · 0 comments
Open

Add Triangle2d.arrowhead function? #152

ianmackenzie opened this issue Jun 23, 2021 · 0 comments

Comments

@ianmackenzie
Copy link
Owner

Useful for 2D drawing but also potentially for 3D graphics (create in 2D then place in 3D). Something like:

Triangle2d.arrowhead :
    { tip : Point2d units coordinates
    , direction : Direction2d units coordinates
    , length : Quantity Float units
    , width : Quantity Float units
    }
    -> Triangle2d units coordinates

Should vertex order of the returned triangle be ( right, tip, left ) or ( tip, left, right )? ( right, tip, left ) is nicely symmetric and has the tip 'centered between' the left and right...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant