MartinSStewart

Results 75 comments of MartinSStewart

I'm currently working on a project that involves a lot of grid related math (sometimes even on non-square grids) mixed in with normal Point2d and Vector2d stuff. I think this...

Sounds good. I'll keep notes on that and get back to you when I've made more progress.

Saw your comment on Slack and it reminded me to get around to writing up what key operations I needed for grid operations. I'll list some notes here as I...

I think either `perpendicularToBoth` or `perpendicularTo2` are good names though I'm not sure which I prefer. When trying to find this function, I looked for functions containing `perpendicular` or `ortho`...

I think it’s best to just have the Direction3d.perpendicularToTwo for now. I’ve only had need for this once. While it is nice to have, I think having 3 versions of...

I think your suggestion in Slack to use `Vector2d.fromLengthAndDirection` seems like a good approach. You mentioned drawbacks being it's verbose and doesn't work well with piping but I think the...

To me `Point.fromXY` is worth it for consistency (even if `Point2d.xy` is otherwise a good name). Not sure what I think about the rest. Lots of tricky decisions! I think...

Yeah, for me `xy` is a function I use often enough that I find `fromCoordinates` to be excessively long. `fromXY` isn't too bad though.

Maybe the term `clip` could be dropped since it feels like a more technical term and this package has a more high level focus on rendering? `minRenderDistance` instead perhaps?

I've now also added `Point2d.insideTriangle`. The code for it is [here](https://gitlab.com/MartinSStewart/surface-voyager/blob/master/src/Point2dEx.elm) and tests are [here](https://gitlab.com/MartinSStewart/surface-voyager/blob/master/tests/Point2dExTests.elm).