Add new coordinate

@param \Jaguar\Coordinate $coordinate

@return \Jaguar\Drawable\Polygon
186766
public function addCoordinate(Coordinate $coordinate)
    {
        $this->coordinates[] = $coordinate;
        $this->setNumber(count($this->coordinates));

        return $this;
    }
1188117
public static function add(/** polymorphic **/)
    {
       $args = func_get_args();
       $that = self::get_this($args);
       $term = self::get_term($args);

       $url = URIResource::Make($that->path, array($that->id, $term));

       $id = Locator::Find($that->client->post($url, $args->get()));
        
       return $this->$term($id);
    }
498151
protected void addCoordinateToGeometry(Coordinate newCoordinate) {
		int length = geometry.getCoordinates().length;
		Coordinate[] oldCoords = geometry.getCoordinates();
		Coordinate[] newCoords = new Coordinate[length + 1];
		System.arraycopy(oldCoords, 0, newCoords, 0, length);

		// put new coordinate in right position
		newCoords[length] = newCoordinate;

		// create new geometry
		geometry = factory.createLineString(newCoords);

		// update drawing
		updateTempLineAfterClick();
	}
914741
public static function xy(float $x, float $y, int $srid = 0) : Point
    {
        return new Point(CoordinateSystem::xy($srid), $x, $y);
    }
946124
public function multiplyPoint($x, $y) 
    {
        return new Point(
            $this->a * $x + $this->c * $y + $this->e,
            $this->b * $x + $this->d * $y + $this->f
        );
    }
146361
public function setCoordinate(\ArrayObject $coordinates)
    {
        $this->coordinates = $coordinates;
        $this->setNumber(count($coordinates));

        return $this;
    }
788749
public function geoShape($field, $type, array $coordinates = [], array $attributes = [])
    {
        $query = new GeoShapeQuery();

        $query->addShape($field, $type, $coordinates, $attributes);

        $this->append($query);

        return $this;
    }
173489
public function addImage($image, $x = 0, $y = 0, $opacity = 50) {
		if (!$image instanceof Image) {
			$image = new Image($image);
		}
		if ($image->getRealType() == 'png') {
			return $this->copyFrom($image, 0, 0, $x, $y);
		}
		return $this->copyAndMergeFrom($image, $x, $y, $opacity);
	}
856394
public function addCoord(LatLng $coord)
    {
        $cloned = clone $coord;
        $cloned->setName(null);
        $this->options['data'][] = $coord;

        return $this;
    }
901785
public function addCloneableRelation($relation) {
		$relations = $this->getCloneableRelations();
		if (in_array($relation, $relations)) return;
		$relations[] = $relation;
		$this->cloneable_relations = $relations;
	}
178407
public function add($key, $value) {
    if ($this->exists($key)) {
      throw new SimpleOrderedMapException('Key already exists');
    }
    $this->keys[] = $key;
    $this->values[] = $value;
    return $this;
  }
519131
private function getBox(array $coordinates)
    {
        $height = abs($coordinates['y1'] - $coordinates['y2']);
        $width = abs($coordinates['x1'] - $coordinates['x2']);

        return new Box($width, $height);
    }
263046
public function lineTo($x,$y)
	{
		
		$imageResource = $this->_imageResource;
		
		$_x = (int)$x;
		$_y = (int)$y;
		if($this->_beganFill){
			$this->_polygonPath[] = $_x;
			$this->_polygonPath[] = $_y;
		}else{
			imageline(
				$imageResource,
				$this->_oldX,
				$this->_oldY,
				$_x,
				$_y,
				$this->_lineDmColor->imagecolorallocatealpha($imageResource)
			);
		}
		$this->_oldX = $_x;
		$this->_oldY = $_y;
		return $this;
	}
75264
public function multiply($x, $y) {
		$this->width *= $x;
		$this->height *= $y;
		return $this;
	}
741527
public function addPoint($coordX, $coordY = null)
    {
        if (is_array($coordX)) {
            $coordY = (isset($coordX[1]) ? $coordX[1] : 0.);
            $coordX = (isset($coordX[0]) ? $coordX[0] : 0.);
        }
        array_push($this->points, array($coordX, $coordY));
        return $this;
    }
1285833
public function render(Coordinate $coordinate)
    {
        $formatter = $this->getFormatter();

        return $formatter->renderObjectAssignment($coordinate, $formatter->renderObject('LatLng', [
            $coordinate->getLatitude(),
            $coordinate->getLongitude(),
            $formatter->renderEscape($coordinate->isNoWrap()),
        ]));
    }
541169
public function createCoordinatesFromGeometry() : Coordinates
    {
        // create new coordinates object
        $coordinates = new Coordinates($this->googleData->geometry->location->lat, $this->googleData->geometry->location->lng);

        return $coordinates;
    }