core: fix naming of x2dhc_lookup
This commit is contained in:
parent
ac037f5a78
commit
9a16509085
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue