xrt: Use doubles in xrt_vec3_f64

This commit is contained in:
Mateo de Mayo 2021-10-06 15:23:28 -03:00
parent 5abd3b3570
commit 5845155229
2 changed files with 5 additions and 5 deletions
src/xrt
auxiliary/util
include/xrt

View file

@ -211,13 +211,13 @@ u_json_get_vec3_f64_array(const cJSON *json, struct xrt_vec3_f64 *out_vec3)
return false;
}
float array[3] = {0, 0, 0};
double array[3] = {0, 0, 0};
const cJSON *item = NULL;
size_t i = 0;
cJSON_ArrayForEach(item, json)
{
assert(cJSON_IsNumber(item));
array[i] = (float)item->valuedouble;
array[i] = item->valuedouble;
++i;
if (i == 3) {
break;

View file

@ -172,9 +172,9 @@ struct xrt_vec3
*/
struct xrt_vec3_f64
{
float x;
float y;
float z;
double x;
double y;
double z;
};
/*!