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

Class AbstractContinuousCurve2D

    • Constructor Detail

      • AbstractContinuousCurve2D

        public AbstractContinuousCurve2D()
    • Method Detail

      • asPolyline

        public LinearCurve2D asPolyline(int n)
        Converts this continuous curve to an instance of LinearCurve2D with the given number of edges. Returns either an instance of Polyline2D or LinearRing2D, depending on the curve is closed or not. This method can be overridden to return the correct type.
        Specified by:
        asPolyline in interface ContinuousCurve2D
        Parameters:
        n - the number of line segments
        Returns:
        a polyline with n line segments.
        See Also:
        ContinuousCurve2D.asPolyline(int)
      • continuousCurves

        public java.util.Collection<? extends ContinuousCurve2D> continuousCurves()
        Description copied from interface: Curve2D
        Returns the collection of continuous curves which constitute this curve.
        Specified by:
        continuousCurves in interface Curve2D
        Returns:
        a collection of continuous curves.
      • draw

        public void draw(java.awt.Graphics2D g2)
        Description copied from interface: Curve2D
        Draws the curve on the given Graphics2D object.
        Specified by:
        draw in interface Curve2D
        Specified by:
        draw in interface Shape2D
        Parameters:
        g2 - the graphics to draw the curve in
      • asAwtShape

        public java.awt.Shape asAwtShape()
        Specified by:
        asAwtShape in interface Curve2D
        Returns:
        the shape corresponding to this curve
      • clone

        @Deprecated
        public abstract ContinuousCurve2D clone()
        Deprecated. use copy constructor instead (0.11.2)
        Specified by:
        clone in interface Curve2D
        Overrides:
        clone in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.