You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
instead of being able to just subtract (0.5, 0.5, 0.5).
If we ever need to do more arithmetic with vectors/coordinates then we should replace this with a more robust class, potentially a simple homemade one which can just add/subtract/multiply/divide, but ideally with one from a well-maintained module which supports distances, angles and whatnot, and might be a bit optimised.
Currently Point3D is a NamedTuple which is sort of fine, but we have to do stuff like:
corrected_centre = Point3D(xray_centre.x - 0.5, xray_centre.y - 0.5, xray_centre.z - 0.5)instead of being able to just subtract (0.5, 0.5, 0.5).
If we ever need to do more arithmetic with vectors/coordinates then we should replace this with a more robust class, potentially a simple homemade one which can just add/subtract/multiply/divide, but ideally with one from a well-maintained module which supports distances, angles and whatnot, and might be a bit optimised.