A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.oracle.com/en/java/javase/19/docs/api/java.desktop/java/awt/Polygon.html below:

Polygon (Java SE 19 & JDK 19)

All Implemented Interfaces:
Shape, Serializable

The

Polygon

class encapsulates a description of a closed, two-dimensional region within a coordinate space. This region is bounded by an arbitrary number of line segments, each of which is one side of the polygon. Internally, a polygon comprises of a list of

(x,y)

coordinate pairs, where each pair defines a

vertex

of the polygon, and two successive pairs are the endpoints of a line that is a side of the polygon. The first and final pairs of

(x,y)

points are joined by a line segment that closes the polygon. This

Polygon

is defined with an even-odd winding rule. See

WIND_EVEN_ODD

for a definition of the even-odd winding rule. This class's hit-testing methods, which include the

contains

,

intersects

and

inside

methods, use the

insideness

definition described in the

Shape

class comments.

Since:
1.0
See Also:

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4