|
| double | calc_distance (const game_coordinate &lhs, const game_coordinate &rhs) noexcept |
| | Calculate the euclidean distance between two points.
|
| |
| double | calc_length (const game_coordinate &coordinat) noexcept |
| | Calculate the length of the vector, a.k.a.
|
| |
| game_coordinate | center_on_center (const game_coordinate &coordinat) |
| | center a coordinat on the center of a square, i.e.
|
| |
| game_coordinate | create_random_game_coordinate (std::default_random_engine &rng_engine) |
| | Create a random game_coordinate.
|
| |
| game_coordinate | get_above (const game_coordinate &coordinat) noexcept |
| | Get the game coordinat one square above this one, i.e.
|
| |
| game_coordinate | get_below (const game_coordinate &coordinat) noexcept |
| | Get the game coordinat one square below this one, i.e.
|
| |
| game_coordinate | get_left (const game_coordinate &coordinat) noexcept |
| | Get the game coordinat one square left of this one, i.e.
|
| |
| game_coordinate | get_right (const game_coordinate &coordinat) noexcept |
| | Get the game coordinat one square right of this one, i.e.
|
| |
| game_coordinate | get_rotated_coordinat (const game_coordinate &coordinat) noexcept |
| | Rotate the coordinat, i.e.
|
| |
| bool | is_coordinat_on_board (const game_coordinate &c) noexcept |
| | Determine if the coordinat is on the chess board.
|
| |
| bool | is_forward (const chess_color color, const square &from, const square &to) |
| | Is the 'to' coordinat forward, i.e.
|
| |
| void | test_game_coordinate () |
| | Test this class and its free function.
|
| |
| std::string | to_notation (const game_coordinate &g) |
| | Convert to coordinat to chess notation, e.g.
|
| |
| std::string | to_str (const game_coordinate &c) noexcept |
| | Converts the coordinate to a string.
|
| |
| bool | operator== (const game_coordinate &lhs, const game_coordinate &rhs) noexcept |
| |
| bool | operator!= (const game_coordinate &lhs, const game_coordinate &rhs) noexcept |
| |
| std::ostream & | operator<< (std::ostream &os, const game_coordinate &c) |
| |
| game_coordinate | operator- (const game_coordinate &lhs, const game_coordinate &rhs) noexcept |
| |
| game_coordinate | operator+ (const game_coordinate &lhs, const game_coordinate &rhs) noexcept |
| |
| game_coordinate & | operator+= (game_coordinate &lhs, const game_coordinate &rhs) noexcept |
| |
| game_coordinate | operator/ (const game_coordinate &coordinat, const double factor) noexcept |
| |
| game_coordinate | operator* (const game_coordinate &c, const double factor) noexcept |
| |