summaryrefslogtreecommitdiffstats
path: root/libdimension/cameras.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/cameras.c')
-rw-r--r--libdimension/cameras.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/cameras.c b/libdimension/cameras.c
index 54c7e7f..3389cc7 100644
--- a/libdimension/cameras.c
+++ b/libdimension/cameras.c
@@ -77,10 +77,10 @@ dmnsn_perspective_camera_ray_fn(const dmnsn_camera *camera,
dmnsn_line l;
/* Rays originate at the origin, oddly enough */
- l.x0 = dmnsn_vector_construct(0.0, 0.0, 0.0);
+ l.x0 = dmnsn_new_vector(0.0, 0.0, 0.0);
/* Aim at the z = 1 plane */
- l.n = dmnsn_vector_construct(x - 0.5, y - 0.5, 1.0);
+ l.n = dmnsn_new_vector(x - 0.5, y - 0.5, 1.0);
return dmnsn_matrix_line_mul(*trans, l);
}