Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ad-si/LuaCAD
/ quantize
Function
quantize
crates/luacad/src/export.rs:106–108 ·
view source on GitHub ↗
(v: f32)
Source
from the content-addressed store, hash-verified
104
fn quantize(v: f32) -> i64 {
105
(v as f64 * 1000.0).round() as i64
106
}
107
108
#[cfg(feature =
"csgrs"
)]
109
fn vkey(x: f32, y: f32, z: f32) -> VKey {
110
(quantize(x), quantize(y), quantize(z))
111
}
Callers
1
vkey
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected