TileCoordinates class

Inheritance
Available extensions
Annotations

Constructors

TileCoordinates.new(int x, int y, int z)
const

Properties

hashCode int
The hash code for this object.
no setteroverride
key String
no setter
magnitude double
Get the straight line (Euclidean) distance between the origin (0, 0) and this point.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
x int
finalinherited
y int
finalinherited
z int
final

Methods

add(Point<int> other) Point<int>

Available on Point<int>, provided by the IntegerPointExtension extension

Add other to this Point.
distanceTo(Point<num> other) double
Returns the distance between this and other.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scaleBy(Point<int> other) Point<int>

Available on Point<int>, provided by the IntegerPointExtension extension

Create a new Point where x and y values are scaled by the respective values in other.
squaredDistanceTo(Point<int> other) int
Returns the squared distance between this and other.
inherited
subtract(Point<int> other) Point<int>

Available on Point<int>, provided by the IntegerPointExtension extension

Subtract other from this Point.
toString() String
A string representation of this object.
override

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 ==(Object other) bool
Whether other is a point with the same coordinates as this point.
override