Struct bwapi::position::TilePosition[][src]

pub struct TilePosition { /* fields omitted */ }

Indicates a position that is 32×32 pixels in size.

Methods

impl TilePosition
[src]

The distance between this point and position.

Trait Implementations

impl Eq for TilePosition
[src]

impl PartialEq for TilePosition
[src]

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

This method tests for !=.

impl Debug for TilePosition
[src]

Formats the value using the given formatter. Read more

impl Point for TilePosition
[src]

The scale of a TilePosition. Each tile position corresponds to a 32x32 pixel area.

The length of this point from (0,0)

impl From<TilePosition> for TilePosition
[src]

Performs the conversion.

impl From<TilePosition> for TilePosition
[src]

Performs the conversion.

impl From<TilePosition> for Position
[src]

Performs the conversion.

impl From<Position> for TilePosition
[src]

Performs the conversion.

impl From<TilePosition> for WalkPosition
[src]

Performs the conversion.

impl From<WalkPosition> for TilePosition
[src]

Performs the conversion.

impl Add<TilePosition> for TilePosition
[src]

T op T

The resulting type after applying the + operator.

Performs the + operation.

impl<'a> Add<TilePosition> for &'a TilePosition
[src]

&T op T

The resulting type after applying the + operator.

Performs the + operation.

impl<'a> Add<&'a TilePosition> for TilePosition
[src]

T op &T

The resulting type after applying the + operator.

Performs the + operation.

impl<'a, 'b> Add<&'a TilePosition> for &'b TilePosition
[src]

&T op &T

The resulting type after applying the + operator.

Performs the + operation.

impl Sub<TilePosition> for TilePosition
[src]

T op T

The resulting type after applying the - operator.

Performs the - operation.

impl<'a> Sub<TilePosition> for &'a TilePosition
[src]

&T op T

The resulting type after applying the - operator.

Performs the - operation.

impl<'a> Sub<&'a TilePosition> for TilePosition
[src]

T op &T

The resulting type after applying the - operator.

Performs the - operation.

impl<'a, 'b> Sub<&'a TilePosition> for &'b TilePosition
[src]

&T op &T

The resulting type after applying the - operator.

Performs the - operation.

impl Mul<isize> for TilePosition
[src]

T op x

The resulting type after applying the * operator.

Performs the * operation.

impl<'a> Mul<isize> for &'a TilePosition
[src]

&T op x

The resulting type after applying the * operator.

Performs the * operation.

impl<'a> Mul<&'a isize> for TilePosition
[src]

T op &x

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, 'b> Mul<&'a isize> for &'b TilePosition
[src]

&T op &x

The resulting type after applying the * operator.

Performs the * operation.

impl Div<isize> for TilePosition
[src]

T op x

The resulting type after applying the / operator.

Performs the / operation.

impl<'a> Div<isize> for &'a TilePosition
[src]

&T op x

The resulting type after applying the / operator.

Performs the / operation.

impl<'a> Div<&'a isize> for TilePosition
[src]

T op &x

The resulting type after applying the / operator.

Performs the / operation.

impl<'a, 'b> Div<&'a isize> for &'b TilePosition
[src]

&T op &x

The resulting type after applying the / operator.

Performs the / operation.

Auto Trait Implementations