MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / encode_vec3

Function encode_vec3

examples/Protobuf Example/sensor_simulator.py:88–89  ·  view source on GitHub ↗
(x: float, y: float, z: float)

Source from the content-addressed store, hash-verified

86
87
88def encode_vec3(x: float, y: float, z: float) -> bytes:
89 return field_float(1, x) + field_float(2, y) + field_float(3, z)
90
91
92# ---------------------------------------------------------------------------

Callers 2

make_sensor_frameFunction · 0.85
make_vec3_frameFunction · 0.85

Calls 1

field_floatFunction · 0.85

Tested by

no test coverage detected