miniRT
By Marcelo Magalhães and Ygor G. Sena, 2023.
s_cylinder Struct Reference

The structure t_cylinder represents a cylinder. More...

#include <shapes.h>

Collaboration diagram for s_cylinder:

Data Fields

t_point origin
 
float radius
 
float minimum
 
float maximum
 
t_bool closed
 

Detailed Description

The structure t_cylinder represents a cylinder.

Parameters
originStores the cylinder's origin point.
radiusStores the radius of the cylinder.
minimumStores the cylinder's minimum height, i.e, lowest height.
maximumStores the cylinder's maxinum height, i.e, highest height.
closedStores TRUE, if the cylinder is capped or FALSE, if it isn't capped.