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

Class AbstractSmoothCurve2D

    • Constructor Detail

      • AbstractSmoothCurve2D

        public AbstractSmoothCurve2D()
    • Method Detail

      • leftTangent

        public Vector2D leftTangent(double t)
        Description copied from interface: ContinuousCurve2D
        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.
        Specified by:
        leftTangent in interface ContinuousCurve2D
        Parameters:
        t - the position on the curve
        Returns:
        the left tangent vector at the curve for position t
      • rightTangent

        public Vector2D rightTangent(double t)
        Description copied from interface: ContinuousCurve2D
        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.
        Specified by:
        rightTangent in interface ContinuousCurve2D
        Parameters:
        t - the position on the curve
        Returns:
        the right tangent vector at the curve for position t
      • singularPoints

        public java.util.Collection<Point2D> singularPoints()
        Returns an empty set of Point2D, as a smooth curve does not have singular points by definition.
        Specified by:
        singularPoints in interface Curve2D
        Returns:
        a collection of Point2D.
        See Also:
        Curve2D.singularPoints()
      • vertices

        public java.util.Collection<Point2D> vertices()
        Returns a set of Point2D, containing the extremities of the curve if they are not infinite.
        Specified by:
        vertices in interface Curve2D
        Returns:
        a collection of Point2D.
        See Also:
        Curve2D.vertices()
      • isSingular

        public boolean isSingular(double pos)
        Returns always false, as a smooth curve does not have singular points by definition.
        Specified by:
        isSingular in interface Curve2D
        Parameters:
        pos - the position of the point on the curve
        Returns:
        true if the point at this location is singular
        See Also:
        Curve2D.isSingular(double)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.