Loading...
Searching...
No Matches
Polygon Class Reference

A polygon with specified list of points. More...

Public Member Functions

 Polygon (this.points)
 Default constructor.
 

Public Attributes

List< Pointpoints
 Ring specifying the area.
 

Detailed Description

A polygon with specified list of points.

Dart code snippet:

// Create polygon
Polygon polygon = Polygon(polygonPoints);
print("Created polygon with ${polygon.points.length} points");

Definition at line 22 of file polygon.dart.

Constructor & Destructor Documentation

◆ Polygon()

Polygon.Polygon ( this. points)

Default constructor.

Member Data Documentation

◆ points

List<Point> Polygon.points

Ring specifying the area.

Dart code snippet:

// Get polygon points
List<Point> points = polygon.points;
print("Polygon points: ${points.map((p) => "(${p.x}, ${p.y})").join(", ")}");

Definition at line 34 of file polygon.dart.


The documentation for this class was generated from the following file: