Point class

Point holds two integer coordinates.

See: https://developer.android.com/reference/android/graphics/Point

Implemented types

Constructors

Point([int x = 0, int y = 0 ])

Properties

hashCode → int
The hash code for this object.
read-only, inherited
magnitude → double
Get the straight line (Euclidean) distance between the origin (0, 0) and this point.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
x → int
final, inherited
y → int
final, inherited

Methods

distanceTo(Point<int> other) → double
Returns the distance between this and other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
squaredDistanceTo(Point<int> other) → int
Returns the squared distance between this and other.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator *(num factor) → Point<int>
Scale this point by factor as if it were a vector.
inherited
operator +(Point<int> other) → Point<int>
Add other to this, as if both points were vectors.
inherited
operator -(Point<int> other) → Point<int>
Subtract other from this, as if both points were vectors.
inherited
operator ==(dynamic other) → bool
A Point is only equal to another Point with the same coordinates.
inherited