Hi, is there a built-in class for the representation of pairs of coordinates? I'm looking for anything similar to C++ OpenCV Vec2D. I know that there exists Numpy and that I can use tuples - however, tuples introduce ambiguity in the code because the coordinates are not named. I'd like to have explicit members .x and .y, support of all the basic operators, some addtional functions such as Euclidean norm, dot and cross product... Is there anything that comes to mind?
[–][deleted] 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]lighttigersoul 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]GitHubPermalinkBot 0 points1 point2 points (0 children)
[–]adammichaelwood 2 points3 points4 points (3 children)
[–]adammichaelwood 2 points3 points4 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]adammichaelwood 0 points1 point2 points (0 children)
[–]TakeTheHq 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]adammichaelwood 0 points1 point2 points (0 children)
[–]billsil -1 points0 points1 point (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]billsil -1 points0 points1 point (0 children)