A utility class for representing two-dimensional positions.
Constructors
- Point(T x, T y)
-
const
Properties
Operators
-
operator *(
num factor) → Point<T> -
Scale this point by
factoras if it were a vector.… -
operator +(
Point<T> other) → Point<T> -
Add
othertothis, as if both points were vectors.… -
operator -(
Point<T> other) → Point<T> -
Subtract
otherfromthis, as if both points were vectors.… -
operator ==(
other) → bool -
A
Pointis only equal to anotherPointwith the same coordinates.…
Methods
-
distanceTo(
Point<T> other) → double -
Returns the distance between
thisandother. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.…
inherited -
squaredDistanceTo(
Point<T> other) → T -
Returns the squared distance between
thisandother.… -
toString(
) → String -
Returns a string representation of this object.