Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.
This repository was archived by the owner on Sep 2, 2024. It is now read-only.

Replace Point3D with something which supports arithmetic #348

Description

@d-perl

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions