public function includes(Position $position): bool
    {
        return $this->start->compare($position) <= 0 && $this->end->compare($position) >= 0;
    }
public function includes(Position $position): bool
    {
        return $this->start->compare($position) <= 0 && $this->end->compare($position) >= 0;
    }
public function includes ( Position $ position ) : bool { return $ this -> start -> compare ( $ position ) <= 0 && $ this -> end -> compare ( $ position ) >= 0 ; }
Checks if a position is within the range

@param Position $position
@return bool
Checks if a position is within the range