Answer the question
In order to leave comments, you need to log in
Wrong coordinates or/and formula?
There is an array with coordinates.
I use this code
$rad = 45 * (pi / 180);
$c = 2; # центр xy
# цикл
$nx = $c + ($x - $c) * cos($rad) + ($y - $c) * sin($rad);
$ny = $c - ($x - $c) * sin($rad) + ($y - $c) * cos($rad);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question