public function curveN(int $n) : Curve
    {
        if (! isset($this->curves[$n - 1])) {
            throw new NoSuchGeometryException('There is no Curve in this CompoundCurve at index ' . $n);
        }

        return $this->curves[$n - 1];
    }
public function curveN(int $n) : Curve
    {
        if (! isset($this->curves[$n - 1])) {
            throw new NoSuchGeometryException('There is no Curve in this CompoundCurve at index ' . $n);
        }

        return $this->curves[$n - 1];
    }
public function curveN ( int $ n ) : Curve { if ( ! isset ( $ this -> curves [ $ n - 1 ] ) ) { throw new NoSuchGeometryException ( 'There is no Curve in this CompoundCurve at index ' . $ n ) ; } return $ this -> curves [ $ n - 1 ] ; }
Returns the specified Curve N in this CompoundCurve.

@param int $n The curve number, 1-based.

@return Curve

@throws NoSuchGeometryException If there is no Curve at this index.
Returns the specified Curve N in this CompoundCurve .