This geometrical application is too specialized to be built into VPython. However, VPython does provide all the standard operations for 3D vector calculations; in the VPython Help see Work with 3D objects > Vector Operations.
On the other hand, perhaps you
should describe why you need this capability, in which case we may be
able to propose a different way of getting the results you want.