I need three js equivalent to my code

start_pt.vector_to(end_pt)

This is my code in some other language but whats the three js equivalent for this.
Here this code giving me an vector.

Thanks

@Alex
Subtract the start vector from the end vector.

let vStart = _vector;
let vEnd = _vector;
let result = new THREE.Vector3().subVectors(vEnd, vStart);
1 Like

Is there any way to check to check that direction vector is clockwise or anti?
I want a short way to calculate the azimuth. These are end points of my line and you showed how to get the direction vector. Any idea how to acheive this in three js. Any help on this