diff options
author | CNLohr <charles@cnlohr.com> | 2017-02-16 00:04:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-16 00:04:32 -0500 |
commit | 5552609f553290d92ed4209b4ce4f9040598e2bb (patch) | |
tree | 4a8f6bf25d87ba0fbc0f6d913a7f5ea1c5926106 /tools/lighthousefind_tori/main.c | |
parent | 23a202f50fc0f9eb9127bebaf34c48d45776a25c (diff) | |
parent | 55a1f849d77d34f08a555e90120959b3ce9880ea (diff) | |
download | libsurvive-5552609f553290d92ed4209b4ce4f9040598e2bb.tar.gz libsurvive-5552609f553290d92ed4209b4ce4f9040598e2bb.tar.bz2 |
Merge pull request #28 from mwturvey/optimize_gd
Optimize gradient descent
Diffstat (limited to 'tools/lighthousefind_tori/main.c')
-rw-r--r-- | tools/lighthousefind_tori/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lighthousefind_tori/main.c b/tools/lighthousefind_tori/main.c index aa51448..ee56b37 100644 --- a/tools/lighthousefind_tori/main.c +++ b/tools/lighthousefind_tori/main.c @@ -51,6 +51,9 @@ static void runTheNumbers() to->sensor[sensorCount].point.x = hmd_points[i * 3 + 0]; to->sensor[sensorCount].point.y = hmd_points[i * 3 + 1]; to->sensor[sensorCount].point.z = hmd_points[i * 3 + 2]; + to->sensor[sensorCount].normal.x = hmd_norms[i * 3 + 0]; + to->sensor[sensorCount].normal.y = hmd_norms[i * 3 + 1]; + to->sensor[sensorCount].normal.z = hmd_norms[i * 3 + 2]; to->sensor[sensorCount].theta = hmd_point_angles[i * 2 + 0] + LINMATHPI / 2; to->sensor[sensorCount].phi = hmd_point_angles[i * 2 + 1] + LINMATHPI / 2; sensorCount++; |