JansenFelipe\OMR\Contracts\Scanner::anglePoints PHP Method

anglePoints() protected method

Calculates angle between two points
protected anglePoints ( Point $a, Point $b ) : float
$a JansenFelipe\OMR\Point
$b JansenFelipe\OMR\Point
return float
    protected function anglePoints(Point $a, Point $b)
    {
        $diffX = $b->getX() - $a->getX();
        $diffY = $b->getY() - $a->getY();
        return rad2deg(atan($diffY / $diffX));
    }