class documentation
class Point: (source)
Constructors: tagARCCmd.Point.unpack(data)
, tagARCCmd.Point(x, y, z, r)
Represents a point in 3D space with an additional rotation component.
Class Method | unpack |
Unpacks a bytes sequence into a Point object. |
Method | __init__ |
Undocumented |
Method | pack |
Packs the Point object into a bytes sequence. |
Instance Variable | r |
Undocumented |
Instance Variable | x |
Undocumented |
Instance Variable | y |
Undocumented |
Instance Variable | z |
Undocumented |
Unpacks a bytes sequence into a Point object.
Parameters | |
data:bytes | The bytes to unpack, expected to be 32 bytes (4 doubles). |
Returns | |
tagARCCmd.Point | A Point object. |
Raises | |
struct.error | If the input bytes are not the expected size (32 bytes). |
Packs the Point object into a bytes sequence.
Packs 4 floats (x, y, z, r) into a byte string. Uses little-endian byte order.
Returns | |
bytes | A bytes object representing the packed data (32 bytes). |