JansenFelipe\OMR\Point::getX PHP Method

getX() public method

Position X
public getX ( ) : float
return float
    public function getX()
    {
        return $this->x;
    }

Usage Example

Esempio n. 1
0
 /**
  * Calculates angle between two points
  *
  * @param Point $a
  * @param Point $b
  * @return float
  */
 protected function anglePoints(Point $a, Point $b)
 {
     $diffX = $b->getX() - $a->getX();
     $diffY = $b->getY() - $a->getY();
     return rad2deg(atan($diffY / $diffX));
 }
All Usage Examples Of JansenFelipe\OMR\Point::getX