Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
eyepair.h
Go to the documentation of this file.
1
10#pragma once
11#include "sr/types.h"
12#include <stdint.h>
13
14#ifdef __cplusplus
15enum SR_eyeSide : uint64_t {
16 LeftEye = 0, // Left eye
17 RightEye = 1 // Right eye
18};
19#else
20typedef uint64_t SR_eyeSide;
21#endif
22
28typedef struct {
29 uint64_t frameId;
30 uint64_t time;
31 union {
32 SR_point3d eyes[2];
33 struct {
36 };
37 };
SR_eyeSide
Definition: eyepair.h:15
@ LeftEye
Definition: eyepair.h:16
@ RightEye
Definition: eyepair.h:17
C-compatible struct containing the position of two eyes.
Definition: eyepair.h:28
SR_point3d left
Absolute position of left eye in millimeter.
Definition: eyepair.h:34
uint64_t time
Time since epoch in microseconds.
Definition: eyepair.h:30
uint64_t frameId
Autoincrement frame number.
Definition: eyepair.h:29
SR_point3d right
Absolute position of right eye in millimeter.
Definition: eyepair.h:35
C-compatible 3d double vector representation.
Definition: types.h:81