TileCoordinates class

Inheritance

Constructors

TileCoordinates(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

ceil() CustomPoint<int>
Create new CustomPoint where x and y values are rounded up to int
inherited
distanceTo(Point<num> other) double
Returns the distance between this and other.
override
floor() CustomPoint<int>
Create new CustomPoint where x and y values are rounded down to int
inherited
multiplyBy(num n) CustomPoint<int>
Create new CustomPoint with x and y multiplied by n
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rotate(num radians) CustomPoint<double>
Create new CustomPoint whose x and y values are rotated by radians in clockwise fashion
inherited
round() CustomPoint<int>
Create new CustomPoint where x and y is rounded to int
inherited
scaleBy(CustomPoint<int> point) CustomPoint<int>
Create new CustomPoint where x and y values are scaled by point values
inherited
squaredDistanceTo(Point<int> other) int
Returns the squared distance between this and other.
inherited
toDoublePoint() CustomPoint<double>
inherited
toIntPoint() CustomPoint<int>
inherited
toString() String
A string representation of this object.
override
unscaleBy(CustomPoint<int> point) CustomPoint<double>
Create new CustomPoint whose x and y values are divided by other point values
inherited

Operators

operator *(num factor) CustomPoint<int>
Create new CustomPoint where x and y values are multiplied by factor
inherited
operator +(Point<num> other) CustomPoint<int>
Create new CustomPoint where x and y values are added to other point x and y values
inherited
operator -(Point<num> other) CustomPoint<int>
Create new CustomPoint where x and y values are subtracted from other point x and y values
inherited
operator /(num factor) CustomPoint<int>
Create new CustomPoint where x and y values are divided by factor
inherited
operator ==(Object other) bool
Whether other is a point with the same coordinates as this point.
override