diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-10-26 18:13:39 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-10-26 18:15:02 -0400 |
commit | 3950b4f0d2483cadf006bf2a957aeb820402503a (patch) | |
tree | f7157cdada7ec7b9271967c00b0bb8cddee9bc26 /libdimension/dimension | |
parent | 0075e0c37d9c33ed00e4308e6444b61b204327ba (diff) | |
download | dimension-3950b4f0d2483cadf006bf2a957aeb820402503a.tar.xz |
Add torii to libdimension.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r-- | libdimension/dimension/objects.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libdimension/dimension/objects.h b/libdimension/dimension/objects.h index 91c9127..41706a0 100644 --- a/libdimension/dimension/objects.h +++ b/libdimension/dimension/objects.h @@ -39,4 +39,7 @@ dmnsn_object *dmnsn_new_cube(void); /* A cylinder/cone, from r = r1 at y = -1, to r = r2 at y = 1 */ dmnsn_object *dmnsn_new_cylinder(double r1, double r2, bool open); +/* A torus, centered at the origin and lying in the x-z plane */ +dmnsn_object *dmnsn_new_torus(double major, double minor); + #endif /* DIMENSION_OBJECTS_H */ |