Documentation of 'math.geom2d.point.PointSet2D' Java class
PointSet2D
math.geom2d.point

Interface PointSet2D

    • Method Detail

      • add

        boolean add(Point2D point)
        Adds a new point to the point set. If point is not an instance of Point2D, a Point2D with same location is added instead of point.
        Specified by:
        add in interface ShapeSet2D<Point2D>
        Parameters:
        point - the initial point in the set
      • addAll

        void addAll(java.util.Collection<? extends Point2D> points)
        Add a series of points
        Parameters:
        points - an array of points
      • points

        java.util.Collection<Point2D> points()
        Returns the collection of points contained in this set.
        Specified by:
        points in interface PointShape2D
        Returns:
        the collection of points
      • size

        int size()
        Returns the number of points in the set.
        Specified by:
        size in interface PointShape2D
        Specified by:
        size in interface ShapeSet2D<Point2D>
        Returns:
        the number of points
      • clip

        PointSet2D clip(Box2D box)
        Returns a new point set containing only points located within the box.
        Specified by:
        clip in interface PointShape2D
        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.