pub fn to_absolute_coord(coord: [usize; 2], p: Perspective) -> Coord
Expand description

Converts relative::Coord into absolute::Coordrelative::Coordabsolute::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)
)