Documentation of 'math.geom2d.curve.CurveSet2D' Java class
CurveSet2D
math.geom2d.curve

Interface CurveSet2D<T extends Curve2D>

    • Method Detail

      • contains

        boolean contains(T curve)
        Checks if the curve set contains the given curve.
        Specified by:
        contains in interface ShapeSet2D<T extends Curve2D>
      • curves

        java.util.Collection<T> curves()
        Returns the collection of curves
        Returns:
        the inner collection of curves
      • get

        T get(int index)
        Returns the inner curve corresponding to the given index.
        Specified by:
        get in interface ShapeSet2D<T extends Curve2D>
        Parameters:
        index - index of the curve
        Returns:
        the i-th inner curve
        Since:
        0.6.3
      • childCurve

        T childCurve(double t)
        Returns the child curve corresponding to a given position.
        Parameters:
        t - the position on the set of curves, between 0 and twice the number of curves
        Returns:
        the curve corresponding to the position.
        Since:
        0.6.3
      • firstCurve

        T firstCurve()
        Returns the first curve of the collection if it exists, null otherwise.
        Returns:
        the first curve of the collection
      • lastCurve

        T lastCurve()
        Returns the last curve of the collection if it exists, null otherwise.
        Returns:
        the last curve of the collection
      • localPosition

        double localPosition(double t)
        Converts the position on the curve set, which is comprised between 0 and 2*Nc-1 with Nc being the number of curves, to the position on the curve which contains the position. The result is comprised between the t0 and the t1 of the child curve.
        Parameters:
        t - the position on the curve set
        Returns:
        the position on the subcurve
        See Also:
        globalPosition(int, double), curveIndex(double)
      • globalPosition

        double globalPosition(int i,
                              double t)
        Converts a position on a curve (between t0 and t1 of the curve) to the position on the curve set (between 0 and 2*Nc-1).
        Parameters:
        i - the index of the curve to consider
        t - the position on the curve
        Returns:
        the position on the curve set, between 0 and 2*Nc-1
        See Also:
        localPosition(double), curveIndex(double)
      • curveIndex

        int curveIndex(double t)
        Returns the index of the curve corresponding to a given position.
        Parameters:
        t - the position on the set of curves, between 0 and twice the number of curves minus 1
        Returns:
        the index of the curve which contains position t

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.