Documentation of 'math.geom2d.domain.ContourArray2D' Java class
ContourArray2D
math.geom2d.domain

Class ContourArray2D<T extends Contour2D>

    • Constructor Detail

      • ContourArray2D

        public ContourArray2D()
      • ContourArray2D

        public ContourArray2D(int size)
      • ContourArray2D

        public ContourArray2D(T... curves)
      • ContourArray2D

        public ContourArray2D(java.util.Collection<? extends T> curves)
      • ContourArray2D

        public ContourArray2D(T curve)
    • Method Detail

      • create

        public static <T extends Contour2DContourArray2D<T> create(T... curves)
        Static factory for creating a new ContourArray2D from an array of contours.
        Since:
        0.8.1
      • domain

        public Domain2D domain()
        Description copied from interface: Boundary2D
        Returns the domain delimited by this boundary.
        Specified by:
        domain in interface Boundary2D
        Returns:
        the domain delimited by this boundary
      • fill

        public void fill(java.awt.Graphics2D g2)
        Description copied from interface: Boundary2D
        Fills the interior of the boundary, using the Graphics current Paint.
        Specified by:
        fill in interface Boundary2D
        Parameters:
        g2 - the Graphics to fill on
      • windingAngle

        public double windingAngle(Point2D point)
        Description copied from interface: OrientedCurve2D
        Return the angle portion that the curve turn around the given point. Result is a signed angle.
        Specified by:
        windingAngle in interface OrientedCurve2D
        Parameters:
        point - a point of the plane
        Returns:
        a signed angle
      • signedDistance

        public double signedDistance(Point2D p)
        Description copied from interface: OrientedCurve2D
        Returns the signed distance of the curve to the given point. The distance is positive if the point lies outside the shape, and negative if the point lies inside the shape. In both cases, absolute value of distance is equals to the distance to the border of the shape.
        Specified by:
        signedDistance in interface OrientedCurve2D
        Parameters:
        p - a point of the plane
        Returns:
        the signed distance to the curve
      • signedDistance

        public double signedDistance(double x,
                                     double y)
        Description copied from interface: OrientedCurve2D
        The same as distanceSigned(Point2D), but by passing 2 double as arguments.
        Specified by:
        signedDistance in interface OrientedCurve2D
        Parameters:
        x - x-coord of a point
        y - y-coord of a point
        Returns:
        the signed distance of the point (x,y) to the curve
      • isInside

        public boolean isInside(Point2D point)
        Description copied from interface: Boundary2D
        Returns true if the point is 'inside' the domain bounded by the curve.
        Specified by:
        isInside in interface Boundary2D
        Specified by:
        isInside in interface OrientedCurve2D
        Parameters:
        point - a point in the plane
        Returns:
        true if the point is on the left side of the curve.
      • clip

        public CurveSet2D<? extends ContinuousOrientedCurve2D> clip(Box2D box)
        Clip the curve by a box. The result is an instance of CurveSet2D, which contains only instances of ContinuousOrientedCurve2D. If the curve is not clipped, the result is an instance of CurveSet2D which contains 0 curves.
        Specified by:
        clip in interface Curve2D
        Specified by:
        clip in interface OrientedCurve2D
        Specified by:
        clip in interface Shape2D
        Overrides:
        clip in class CurveArray2D<T extends Contour2D>
        Parameters:
        box - the clipping box
        Returns:
        the clipped shape
      • equals

        public boolean equals(java.lang.Object obj)
        Description copied from class: CurveArray2D
        Returns true if obj is a CurveArray2D with the same number of curves, and such that each curve belongs to both objects.
        Overrides:
        equals in class CurveArray2D<T extends Contour2D>

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.