Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vulae/pkmc
/ quantize_angle
Function
quantize_angle
pkmc-server/src/entity_manager.rs:28–30 ·
view source on GitHub ↗
(angle: f32)
Source
from the content-addressed store, hash-verified
26
}
27
28
pub fn quantize_angle(angle: f32) -> u8 {
29
(angle.rem_euclid(360.0) * (256.0 / 360.0)) as u8
30
}
31
32
pub trait Entity: Debug {
33
fn r#type(&self) -> EntityType;
Callers
1
update_viewers
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected