Block class

This is just a pair of int, int.

Represents a position in a 2d-matrix or tilemap.

Annotations

Constructors

Block(int x, int y)
const
Block.ceilFromVector2(Vector2 position)
Block.floorFromVector2(Vector2 position)
Block.roundFromVector2(Vector2 position)
Block.zero()
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
x → int
x coordinate in the matrix.
final
y → int
y coordinate in the matrix.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override
toVector2() → Vector2

Operators

operator *(double scalar) → Vector2
operator +(Block direction) → Block
operator -(Block other) → Block
operator ==(Object other) → bool
The equality operator.
override