Point2D class

Represents a point in 2D space.

When this point is used to indicate coordinates on a view, then (0,0) will mark the top-left corner of the view.

Constructors

Point2D(double x, double y)
Creates a new instance.
Point2D.zero()
Creates a new instance.

Properties

hashCode → int
The hash code for this object.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
x ↔ double
Position along the X axis. The default value is 0.
getter/setter pair
y ↔ double
Position along the Y axis. The default value is 0.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.