I have two point of a line like p1(a,b) and p2(c,d) my point is X(x,y)
I've searched and find like here
but it isn't php can anyone help me
I have two point of a line like p1(a,b) and p2(c,d) my point is X(x,y)
I've searched and find like here
but it isn't php can anyone help me
DISCLAIMER: I assumed the JS code from the linked answer works.
Below is my attempt to convert the javascript code from here to PHP.
Use it like so:
Comparing JS output with PHP output:
TEST 1
For
JS OUTPUT:
PHP OUTPUT:
TEST 2
For
JS OUTPUT:
PHP OUTPUT:
TEST 3
For
JS OUTPUT:
PHP OUTPUT: