TileIdentity class
Constructors
- TileIdentity(int z, int x, int y)
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- 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 intinherited -
contains(
TileIdentity other) → bool -
distanceTo(
Point< int> other) → double -
Returns the distance between
this
andother
.inherited -
floor(
) → CustomPoint< int> -
Create new
CustomPoint
where x and y values are rounded down to intinherited -
isValid(
) → bool -
key(
) → String -
multiplyBy(
num n) → CustomPoint< int> -
Create new
CustomPoint
with x and y multiplied byn
inherited -
normalize(
) → TileIdentity -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
overlaps(
TileIdentity other) → bool -
rotate(
num radians) → CustomPoint< double> -
Create new
CustomPoint
whose x and y values are rotated byradians
in clockwise fashioninherited -
round(
) → CustomPoint< int> -
Create new
CustomPoint
where x and y is rounded to intinherited -
scaleBy(
CustomPoint< int> point) → CustomPoint<int> -
Create new
CustomPoint
where x and y values are scaled bypoint
valuesinherited -
squaredDistanceTo(
Point< int> other) → int -
Returns the squared distance between
this
andother
.inherited -
toDoublePoint(
) → CustomPoint< double> -
inherited
-
toIntPoint(
) → CustomPoint< int> -
inherited
-
toString(
) → String - A string representation of this object.
-
unscaleBy(
CustomPoint< int> point) → CustomPoint<double> -
Create new
CustomPoint
whose x and y values are divided by otherpoint
valuesinherited
Operators
-
operator *(
num factor) → CustomPoint< int> -
Create new
CustomPoint
where x and y values are multiplied byfactor
inherited -
operator +(
Point< num> other) → CustomPoint<int> -
Create new
CustomPoint
where x and y values are added toother
point x and y valuesinherited -
operator -(
Point< num> other) → CustomPoint<int> -
Create new
CustomPoint
where x and y values are subtracted fromother
point x and y valuesinherited -
operator /(
num factor) → CustomPoint< int> -
Create new
CustomPoint
where x and y values are divided byfactor
inherited -
operator ==(
Object other) → bool -
Whether
other
is a point with the same coordinates as this point.override