public function toString() : string
    {
        $coordinates = $this->getCoordinatesArray();
        $string = "outerloop\n";
        foreach ($coordinates as $coordinate) {
            $string .= "    vertex " . implode(" ", $coordinate) . "\n";
        }
        $string .= "endloop";

        return $string;
    }