Search
Preparing search index...
The search index is not available
Gridy
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
RectangularTile
Class RectangularTile
Hierarchy
Integer2
RectangularTile
Implements
IVector
<
Integer
>
ITile
<
Integer2
>
Index
Constructors
constructor
Properties
x
y
directions
Accessors
key
value
Methods
add
cube
Length
directions
distance
equals
neighbors
scale
shift
to
String
Constructors
constructor
new
Rectangular
Tile
(
x
?:
Integer
, y
?:
Integer
)
:
RectangularTile
Parameters
Default value
x:
Integer
= 0
Default value
y:
Integer
= 0
Returns
RectangularTile
Properties
x
x
:
Integer
y
y
:
Integer
Static
directions
directions
:
Directions
<
RectangularTile
>
= [[Axes4.N, new RectangularTile(0, -1)],[Axes4.E, new RectangularTile(1, 0)],[Axes4.S, new RectangularTile(0, 1)],[Axes4.W, new RectangularTile(-1, 0)]]
Accessors
key
get
key
(
)
:
string
Returns
string
value
get
value
(
)
:
Integer
[]
Returns
Integer
[]
Methods
add
add
(
a
:
RectangularTile
)
:
RectangularTile
Parameters
a:
RectangularTile
Returns
RectangularTile
cube
Length
cube
Length
(
)
:
Integer
Returns
Integer
directions
directions
(
)
:
Directions
<
RectangularTile
>
Returns
Directions
<
RectangularTile
>
distance
distance
(
b
:
Integer2
)
:
Integer
Parameters
b:
Integer2
Returns
Integer
equals
equals
(
p
:
Integer2
)
:
boolean
Parameters
p:
Integer2
Returns
boolean
neighbors
neighbors
(
)
:
Directions
<
RectangularTile
>
Returns
Directions
<
RectangularTile
>
scale
scale
(
a
:
Integer
)
:
RectangularTile
Parameters
a:
Integer
Returns
RectangularTile
shift
shift
(
)
:
RectangularTile
Returns
RectangularTile
to
String
to
String
(
)
:
string
Returns
string
Globals
Rectangular
Tile
constructor
x
y
directions
key
value
add
cube
Length
directions
distance
equals
neighbors
scale
shift
to
String