In the SDK a method has a missing return type, I thought to let you know so you can update the documentation.
The method: viktor.geometry.calculate_distance_vector() has no return type in the documentation. Pycharm says None as return type and your documentation says ndarray as return.
It returns a numpy.ndarray which seems to be a rather raw output… but you might be able to clarify this?
The return type is indeed a numpy.ndarray as stated in the docs: SDK Reference - Geometry | VIKTOR Documentation
It’s an old method. A more ‘elegant’ way is by using the Vector
object (subtraction of vectors): SDK Reference - Geometry | VIKTOR Documentation
1 Like
This indeed is a more elegant way, used this and i like it! Thanks!