A utility class for representing two-dimensional positions.

- Point(T x, T y) const

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

- distanceTo(
Point< T> other) → double - Returns the distance between
`this`

and`other`

. - squaredDistanceTo(
Point< T> other) → T - Returns the squared distance between
`this`

and`other`

. [...] - toString(
) → String override - Returns a string representation of this object.
- noSuchMethod(
Invocation invocation) → dynamic inherited - Invoked when a non-existent method or property is accessed. [...]

- operator *(
num factor) → Point< T> - Scale this point by
`factor`

as if it were a vector. [...] - operator +(
Point< T> other) → Point< T> - Add
`other`

to`this`

, as if both points were vectors. [...] - operator -(
Point< T> other) → Point< T> - Subtract
`other`

from`this`

, as if both points were vectors. [...] - operator ==(
dynamic other) → bool override - A
`Point`

is only equal to another`Point`

with the same coordinates. [...]

© 2012 the Dart project authors

Licensed under the Creative Commons Attribution-ShareAlike License v4.0.

https://api.dart.dev/stable/2.5.0/dart-math/Point-class.html