Closed papyDoctor closed 1 month ago
These methods exist on Vec2
but not Point
, because they make mathematical sense for the former but not the latter. If you are using these methods, the type should be vector.
That said, there is an argument to be made that the .to_vec2()
calls are boilerplate and noise, so making the distinction in the type system is a tradeoff. But, for better or worse, that's where kurbo is.
Hi, It would be useful to add some functions to the Point struct, I'm thinking (and using) of:
I can create a PR if you agree. Also, why can't we multiply (and divide) a Point with a f64? I can also do a PR for this?