F
F
FMars2014-10-03 18:30:19
JavaScript
FMars, 2014-10-03 18:30:19

How to calculate an angle?

You need to find the angle from three points, point B is the end of the segment AB and the beginning of BC :
0b33ee39210941dbb99c2963079aa297.JPG

var Point = function(x, y) {
this.x = x;
this.y = y;
}
var getAngle = function(a, b, c) {
// do something
return angle;
}
var a = getAngle(new Point(7,2), new Point(4,5), new Point(7,11));

Answer the question

In order to leave comments, you need to log in

3 answer(s)
F
FMars, 2014-10-05
@FMars

Needed for this: jsfiddle.net/jd32v88o

L
landergate, 2016-10-22
@burov0798

https://www.keycaptcha.ru/
www.adcaptcher.com
www.solvemedia.com/publishers
www.captchme.com/en

D
Dimonchik, 2016-10-21
@dimonchik2013

the idea does not take off much, although they use it with might and main on file hosting services, look there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question