core: fix naming of x2dhc_lookup

This commit is contained in:
Alain Zscheile 2023-01-08 09:06:50 +01:00
parent ac037f5a78
commit 9a16509085

View file

@ -130,7 +130,7 @@ impl<'a> X2dhc<'a> {
})
}
pub fn x2dhc_lookup(&self, x: u8, y: u8) -> (u64, u64) {
pub fn lookup(&self, x: u8, y: u8) -> (u64, u64) {
let xybr = 8 - self.xybits;
let (x, y) = (x >> xybr, y >> xybr);
let loc = 16 * usize::try_from(hilbert::xy2d(2 * self.xybits, x.into(), y.into())).unwrap();