Loading...
Searching...
No Matches

A point at the specified metrics coordinates. More...

Public Member Functions

 Point (this.x, this.y)
 Default constructor.
 

Public Attributes

double x
 point's x coordinate in meters.
 
double y
 point's y coordinate in meters.
 

Detailed Description

A point at the specified metrics coordinates.

Dart code snippet:

// Create points with x, y coordinates
Point point1 = Point(10.0, 20.0);
Point point2 = Point(30.0, 40.0);
Point point3 = Point(50.0, 60.0);
print("Created points: P1(${point1.x}, ${point1.y}), P2(${point2.x}, ${point2.y}), P3(${point3.x}, ${point3.y})");

Definition at line 22 of file point.dart.

Constructor & Destructor Documentation

◆ Point()

Point.Point ( this. x,
this. y )

Default constructor.

Member Data Documentation

◆ x

double Point.x

point's x coordinate in meters.

Dart code snippet:

// Get X coordinate
double x1 = point1.x;
print("Point1 X coordinate: $x1");

Definition at line 34 of file point.dart.

◆ y

double Point.y

point's y coordinate in meters.

Dart code snippet:

// Get Y coordinate
double y1 = point1.y;
print("Point1 Y coordinate: $y1");

Definition at line 44 of file point.dart.


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