I want to measure distance between 2 points on screen using ember.js

I want to measure distance between 2 points on screen using ember.js. The scenario will be when i click on one point on screen it is selected as first point , and a straight line gets drawn to the next point where I click. The result should be the distance between these points in meters or cm. How can I accomplish this task? Please guide me as I have just started learning ember.js

Well the item you are clcking on will be a html element therefore {{actions ‘clickMeBitch’}} will be appropriate. In that handler you will take the vector between them and run sqrt(a^2 + b^2). It’s not so much an ember question really.