How to measure the vertical distance between two points?

It that mean draw a right angle between two points and obtain the vertical distance between them in hoops Communicator.

Hello @619944680,

I’m not really sure if this is what you are looking for – but to get the distance between two points you can subtract the two points to create a vector and then get the length (distance) of that vector. Here’s a code snippet:

var p1 = new Communicator.Point3(3, 2, 1);
var p2 = new Communicator.Point3(1, 1, 1);
var vec1 = p1.subtract(p2);
var len = vec1.length();


1 Like