Skip to main content

pack_point

Function pack_point 

Source
pub fn pack_point(x: f64, y: f64) -> u64
Expand description

Pack a 2-D vertex into a u64 object field: signed fixed-point x in the high 32 bits, y in the low 32 bits. Handles negative coordinates (lat/long).