MCPcopy Create free account
hub / github.com/PerroEngine/Perro / to_f32

Method to_f32

perro_source/core/perro_structs/src/structs/snorm.rs:37–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35
36 #[inline]
37 pub const fn to_f32(self) -> f32 {
38 self.0 as f32 * (2.0 / 255.0) - 1.0
39 }
40}
41
42impl Default for SignedUnit {

Callers 4

fromMethod · 0.45
to_arrayMethod · 0.45
to_tupleMethod · 0.45
as_vector2Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected