diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-07-13 13:47:17 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-07-13 13:47:17 -0600 |
commit | 3ec26ddd28cbcc279a4fa65de8d68c68b3950576 (patch) | |
tree | eddc68447868b1c0dd9c7f357527a9e8c7670ff9 /libdimension/dimension/objects.h | |
parent | f034b0cba4c028b4b156f7d8824b6ccf84f1f277 (diff) | |
download | dimension-3ec26ddd28cbcc279a4fa65de8d68c68b3950576.tar.xz |
Implement triangles.
Diffstat (limited to 'libdimension/dimension/objects.h')
-rw-r--r-- | libdimension/dimension/objects.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libdimension/dimension/objects.h b/libdimension/dimension/objects.h index aa53329..ba9547d 100644 --- a/libdimension/dimension/objects.h +++ b/libdimension/dimension/objects.h @@ -26,6 +26,16 @@ #include <stdbool.h> /** + * A triangle. + * @param[in] a The first corner of the triangle. + * @param[in] b The second corner of the triangle. + * @param[in] c The third corner of the triangle. + */ +dmnsn_object *dmnsn_new_triangle(dmnsn_vector a, + dmnsn_vector b, + dmnsn_vector c); + +/** * A plane. * @param[in] normal The normal vector of the plane. * @return A plane through the origin, with the given normal. |