From 4dcb998baf07243838afcb4e202b7fd89399972e Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 19 Nov 2009 02:34:22 -0500 Subject: Use dmnsn_new_*() rather than dmnsn_*_construct(). --- libdimension/dimension/geometry.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libdimension/dimension') diff --git a/libdimension/dimension/geometry.h b/libdimension/dimension/geometry.h index 08ac1b3..68359aa 100644 --- a/libdimension/dimension/geometry.h +++ b/libdimension/dimension/geometry.h @@ -42,17 +42,17 @@ typedef struct { /* Shorthand for vector/matrix construction */ DMNSN_INLINE dmnsn_vector -dmnsn_vector_construct(double x, double y, double z) +dmnsn_new_vector(double x, double y, double z) { dmnsn_vector v = { x, y, z }; return v; } DMNSN_INLINE dmnsn_matrix -dmnsn_matrix_construct(double a0, double a1, double a2, double a3, - double b0, double b1, double b2, double b3, - double c0, double c1, double c2, double c3, - double d0, double d1, double d2, double d3) +dmnsn_new_matrix(double a0, double a1, double a2, double a3, + double b0, double b1, double b2, double b3, + double c0, double c1, double c2, double c3, + double d0, double d1, double d2, double d3) { dmnsn_matrix m = { { { a0, a1, a2, a3 }, { b0, b1, b2, b3 }, @@ -68,7 +68,7 @@ dmnsn_matrix dmnsn_translation_matrix(dmnsn_vector d); dmnsn_matrix dmnsn_rotation_matrix(dmnsn_vector theta); DMNSN_INLINE dmnsn_line -dmnsn_line_construct(dmnsn_vector x0, dmnsn_vector n) +dmnsn_new_line(dmnsn_vector x0, dmnsn_vector n) { dmnsn_line l = { x0, n }; return l; -- cgit v1.2.3