Function cetkaik_yhuap_move_candidates::to_absolute_coord
source · pub fn to_absolute_coord(coord: [usize; 2], p: Perspective) -> Coord
Expand description
Converts relative::Coord
into absolute::Coord
/relative::Coord
を absolute::Coord
に変換する。
Examples
use cetkaik_core::*;
use cetkaik_core::perspective::*;
assert_eq!(
to_absolute_coord([2, 4], Perspective::IaIsDownAndPointsUpward),
absolute::Coord(absolute::Row::I, absolute::Column::Z)
)