-
Notifications
You must be signed in to change notification settings - Fork 77
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
Implement Add<Point>
, AddAssign<Point>
, and SubAssign<Point>
for Point.
#185
Comments
This is intentional, as Point+Point has no real meaning in a strict mathematical sense, while Point-Point is a vector. That said, we're getting consistent feedback that all this confusing - #182 is a similar thread, and I have comments on that as well. What I propose, and am leaning toward, is relaxing the mathematical correctness and making Point and Vec2 behave generally quite similarly; the distinction between the two is largely documentation. That would make, for example, |
What I really wanted to do mathematically, is change the origin of a point from I would be more inclined to keep the separation, like colin said in that issue, and just add usefull methods on points that are usefull and mathematically relevant. Like Angle is debatable, but I think that it should definitely be considered a property of a point in the polar coordinate system, as should length for the same reason. |
I agree with @JAicewizard here. Once you've got your head around the |
So for me, definite actions are
What do people think? |
This is really inconsistent ATM. Only
Sub<Point>
exists, not any of the other.The text was updated successfully, but these errors were encountered: