Struct gaia_quadtree::Tile [] [src]

pub struct Tile {
    pub offset: i16,
    pub level: u8,
    pub x: u8,
    pub y: u8,
}

Fields

Methods

impl Tile
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

The width of tiles at level level.

[src]

[src]

[src]

Get this tile's neighbor that is x tiles to the left/right and y tiles to the top/bottom.

The y-axis values will be clamped according to the number of tiles along the vertical axis. The x-axis values will wrap, incrementing or decrementing the offset depending on the direction of the wrap.

Trait Implementations

impl PartialEq for Tile
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Tile
[src]

impl Debug for Tile
[src]

[src]

Formats the value using the given formatter.

impl Hash for Tile
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more