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

Interface ContinuousCurve2D

    • Method Detail

      • isClosed

        boolean isClosed()
        Returns true if the curve makes a loop, that is come back to starting point after covering the path.
      • leftTangent

        Vector2D leftTangent(double t)
        Computes the left tangent at the given position. If the curve is smooth at position t, the result is the same as the tangent computed for the corresponding smooth curve, and is equal to the result of rightTangent(double). If the position t corresponds to a singular point, the tangent of the smooth portion before t is computed.
        Parameters:
        t - the position on the curve
        Returns:
        the left tangent vector at the curve for position t
      • rightTangent

        Vector2D rightTangent(double t)
        Computes the right tangent at the given position. If the curve is smooth at position t, the result is the same as the tangent computed for the corresponding smooth curve, and is equal to the result of leftTangent(double). If the position t corresponds to a singular point, the tangent of the smooth portion after t is computed.
        Parameters:
        t - the position on the curve
        Returns:
        the right tangent vector at the curve for position t
      • curvature

        double curvature(double t)
        Computes the curvature at the given position. The curvature is finite for positions t that correspond to smooth parts, and is infinite for singular points.
        Parameters:
        t - the position on the curve
        Returns:
        the curvature of the curve for position t
      • smoothPieces

        java.util.Collection<? extends SmoothCurve2D> smoothPieces()
        Returns a set of smooth curves.
      • asPolyline

        LinearCurve2D asPolyline(int n)
        Returns an approximation of the curve as a polyline with n line segments. If the curve is closed, the method should return an instance of LinearRing2D. Otherwise, it returns an instance of Polyline2D.
        Parameters:
        n - the number of line segments
        Returns:
        a polyline with n line segments.
      • appendPath

        java.awt.geom.GeneralPath appendPath(java.awt.geom.GeneralPath path)
        Append the path of the curve to the given path.
        Parameters:
        path - a path to modify
        Returns:
        the modified path
      • reverse

        ContinuousCurve2D reverse()
        Description copied from interface: Curve2D
        Returns the curve with same trace on the plane with parameterization in reverse order.
        Specified by:
        reverse in interface Curve2D
      • subCurve

        ContinuousCurve2D subCurve(double t0,
                                   double t1)
        Description copied from interface: Curve2D
        Returns a portion of the original curve, delimited by two positions on the curve.
        Specified by:
        subCurve in interface Curve2D
        Parameters:
        t0 - position of the start of the sub-curve
        t1 - position of the end of the sub-curve
        Returns:
        the portion of original curve comprised between t0 and t1.
      • clip

        CurveSet2D<? extends ContinuousCurve2D> clip(Box2D box)
        Description copied from interface: Curve2D
        When a curve is clipped, the result is a set of curves.
        Specified by:
        clip in interface Curve2D
        Specified by:
        clip in interface Shape2D
        Parameters:
        box - the clipping box
        Returns:
        the clipped shape

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.