/// converts integer chunks into a single coordinate
converts integer chunks into a single coordinate
converts integer chunks into a single coordinate
pub fn coordinate(&self, precision: u32) -> f64 {
        let mut result_int: i32 = 0;
        for (i, element) in self.chunks.iter().enumerate() {
            result_int += (element << i*5) as i32;
        }
        if result_int & 1 == 1 {
            result_int = !result_int;
        }
        result_int = result_int >> 1;
        return result_int as f64 / 10_u32.pow(precision) as f64;
    }
pub fn coordinate ( & self , precision : u32 ) -> f64 { let mut result_int : i32 = 0 ; for ( i , element ) in self . chunks . iter ( ) . enumerate ( ) { result_int += ( element << i * 5 ) as i32 ; } if result_int & 1 == 1 { result_int = ! result_int ; } result_int = result_int >> 1 ; return result_int as f64 / 10_u32 . pow ( precision ) as f64 ; }
converts integer chunks into a single coordinate
converts integer chunks into a single coordinate
&self
precision
u32