riley-harper / RayTracer

Code for a raytracer that I built in spring 2021, along with example images!
0 stars 0 forks source link

Add a Cone Primitive #64

Open riley-harper opened 3 years ago

riley-harper commented 3 years ago

A cone has a starting point p, an axis v, a height h, and an angle theta.

This won't be a "true cone" / infinite hourglass shape. Instead it will be the ice-cream cone shape. The end of the cone doesn't have a circular "cap", since that can be added on later with a circle primitive if the user wants.