4/6/2024 0 Comments Polygon creatorShape and the specified rectangular area. If any point is contained in both the interior of the The rectangular area is considered to intersect the Shape Interior of a specified rectangular area. Tests if the interior of the Shape intersects the contains public boolean contains(double x,.High-precision bounding box of the Shape. If a point is not inside the shape, then it mightīntains(p) does not imply ntains(p) Specified by: getBounds2D in interface Shape Returns: an instance of Rectangle2D that is a If a point is inside the shape according to theīe inside the returned Rectangle2D bounds object according Where those points are also not considered contained in the original On the defining outline of the shape may not be consideredĬontained in the returned bounds object, but only in cases The Rectangle2D that uses double precision values toĭefinition of insideness can lead to situations where points To overflow problems since the return value can be an instance of Returned by the getBounds method and never fails due Theīounding box returned by this method is usually tighter than that Rectangle2D is the smallest bounding box that enclosesĮntirely within the indicated Rectangle2D. Note that there is no guarantee that the returned Returns a high precision and more accurate bounding box of
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |