@thor Distance is easy, just take the norm of the dot product between two position vectors.
CleverLibre Social is an inclusive social instance for open discussion, learning, and community. All cultures welcome. Hate speech and harassment strictly forbidden.