diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-06-27 04:31:59 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-06-27 04:31:59 +0000 |
commit | c4ce1e79e2f528623db4760ad864f4d68062cace (patch) | |
tree | b20206e5b02d39eec9e033d8a1bfa851b0070cf8 /libdimension/geometry.c | |
parent | 3e6e49ed8c93fab4fe36e5f624700aec76263d4f (diff) | |
download | dimension-c4ce1e79e2f528623db4760ad864f4d68062cace.tar.xz |
Wrote more documentation.
Diffstat (limited to 'libdimension/geometry.c')
-rw-r--r-- | libdimension/geometry.c | 8 |
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) |