diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2017-12-23 22:56:24 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2017-12-23 22:56:24 -0800 |
commit | da7171d994d66198682a50f05954b629eb6fb4e4 (patch) | |
tree | 670404ff4e36118cdb1f75d6b3d8dc657277511b /src/modules/ray/ray_euler.c | |
parent | 12b7b727f859c4b3129fdc12c4df74797de9471a (diff) |
ray: constify input scene and camera parameters
also const the ray_euler_t basis
Diffstat (limited to 'src/modules/ray/ray_euler.c')
-rw-r--r-- | src/modules/ray/ray_euler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/ray/ray_euler.c b/src/modules/ray/ray_euler.c index 8709fa3..f143e25 100644 --- a/src/modules/ray/ray_euler.c +++ b/src/modules/ray/ray_euler.c @@ -5,7 +5,7 @@ #include "ray_euler.h" /* produce orthonormal basis vectors from euler angles, rotated in the specified order */ -void ray_euler_basis(ray_euler_t *e, ray_3f_t *forward, ray_3f_t *up, ray_3f_t *left) +void ray_euler_basis(const ray_euler_t *e, ray_3f_t *forward, ray_3f_t *up, ray_3f_t *left) { float cos_yaw = cosf(e->yaw); float sin_yaw = sinf(e->yaw); |