Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Notgnoshi/generative
/ x2i
Method
x2i
tools/streamline.rs:217–219 ·
view source on GitHub ↗
(&self, x: f64)
Source
from the content-addressed store, hash-verified
215
}
216
217
fn x2i(&self, x: f64) -> usize {
218
((x - self.min_x) / self.stride) as usize
219
}
220
221
fn y2j(&self, y: f64) -> usize {
222
((y - self.min_y) / self.stride) as usize
Callers
1
write
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected