I'm making a function with the declaration as follows:
subtract_point_from_point(point p1, point p2)
I'm running into an issue with figuring out the order that the subtract should happen in
So, feel free to let me know which one you prefer, or if you have any strong source saying one way or the other, because I can't find any!
@norikawa whether you use infix or reverse Polish notation, the most common expectation is that the right operand is subtracted from the left operand.
But actually I'd rename this function.
@norikawa i'd read this as "subtract p1 from p2" which is p2 - p1
Revel in the marvels of the universe. We are a collective of forward-thinking individuals who strive to better ourselves and our surroundings through constant creation. We express ourselves through music, art, games, and writing. We also put great value in play. A warm welcome to any like-minded people who feel these ideals resonate with them. Check out our Patreon to see our donations.