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

Method to_f32

perro_source/core/perro_structs/src/structs/unorm.rs:34–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

32
33 #[inline]
34 pub const fn to_f32(self) -> f32 {
35 self.0 as f32 / 255.0
36 }
37}
38
39impl From<u8> for Unit {

Callers 15

to_variantMethod · 0.45
to_json_valueMethod · 0.45
fromMethod · 0.45
rMethod · 0.45
gMethod · 0.45
bMethod · 0.45
aMethod · 0.45
to_arrayMethod · 0.45
to_tupleMethod · 0.45
as_vector3Method · 0.45
to_arrayMethod · 0.45
to_tupleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected