summaryrefslogtreecommitdiffstats
path: root/libdimension/geometry.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/geometry.c')
-rw-r--r--libdimension/geometry.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libdimension/geometry.c b/libdimension/geometry.c
index 2446613..8008224 100644
--- a/libdimension/geometry.c
+++ b/libdimension/geometry.c
@@ -104,6 +104,14 @@ dmnsn_rotation_matrix(dmnsn_vector theta)
);
}
+/* Construct a line */
+dmnsn_line
+dmnsn_line_construct(dmnsn_vector x0, dmnsn_vector n)
+{
+ dmnsn_line l = { .x0 = x0, .n = n };
+ return l;
+}
+
/* Add two vectors */
dmnsn_vector
dmnsn_vector_add(dmnsn_vector lhs, dmnsn_vector rhs)