LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
eyepair.h
Go to the documentation of this file.
1
5#pragma once
6#include "sr/types.h"
7#include <stdint.h>
8
9#ifdef __cplusplus
10enum SR_eyeSide : uint64_t {
11 LeftEye = 0, // Left eye
12 RightEye = 1 // Right eye
13};
14#else
15typedef uint64_t SR_eyeSide;
16#endif
17
23typedef struct {
24 uint64_t frameId;
25 uint64_t time;
26 union {
27 SR_point3d eyes[2];
28 struct {
31 };
32 };
SR_eyeSide
Definition: eyepair.h:10
@ LeftEye
Definition: eyepair.h:11
@ RightEye
Definition: eyepair.h:12
C-compatible struct containing the position of two eyes.
Definition: eyepair.h:23
SR_point3d left
Absolute position of left eye in millimeter.
Definition: eyepair.h:29
uint64_t time
Time since epoch in microseconds.
Definition: eyepair.h:25
uint64_t frameId
Autoincrement frame number.
Definition: eyepair.h:24
SR_point3d right
Absolute position of right eye in millimeter.
Definition: eyepair.h:30
C-compatible 3d double vector representation.
Definition: types.h:73