Heuristic class

Constructors

Heuristic()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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.
inherited

Static Methods

chebyshev(dynamic dx, dynamic dy) → dynamic
Chebyshev distance. @param {number} dx - Difference in x. @param {number} dy - Difference in y. @return {number} max(dx, dy)
euclidean(dynamic dx, dynamic dy) → dynamic
Euclidean distance. @param {number} dx - Difference in x. @param {number} dy - Difference in y. @return {number} sqrt(dx * dx + dy * dy)
manhattan(dynamic dx, dynamic dy) → dynamic
Manhattan distance. @param {number} dx - Difference in x. @param {number} dy - Difference in y. @return {number} dx + dy