![]() |
PhotoGENius V1.0.0
A basic library for generating photorealistic images, developed for the course Numerical techniques for photorealistic image generation.
|
Class to represent a cylinder. More...
Public Member Functions | |
Cylinder (float zmin=0.0f, float zmax=2.0f, float r=1.0f) | |
Constructor without any parameter. | |
Cylinder (Material material, float zmin=0.0f, float zmax=2.0f, float r=1.0f) | |
Constructor with parameters. | |
Cylinder (Transformation transf, Material material, float zmin=0f, float zmax=2f, float r=1.0f) | |
Constructor with parameters. More... | |
Cylinder (Transformation transf, Material material, float zmin, float zmax, float phimax, float r=1.0f) | |
Constructor with parameters. More... | |
override? HitRecord | RayIntersection (Ray ray) |
Compute the intersection between a ray and the shape. Returns a HitRecord object, or Null if the ray doesn't hit the plane. More... | |
override bool | QuickRayIntersection (Ray ray) |
Determine whether a ray hits the shape or not More... | |
virtual ? HitRecord | RayIntersection (Ray ray) |
Compute the intersection between a ray and a shape More... | |
virtual bool | QuickRayIntersection (Ray ray) |
Determine whether a ray hits the shape or not More... | |
Public Attributes | |
float | R |
float | Zmin |
float | Zmax |
float | Phimax |
![]() | |
Transformation | Transf |
Material | Material |
Class to represent a cylinder.
PGENLib.Cylinder.Cylinder | ( | Transformation | transf, |
Material | material, | ||
float | zmin = 0f , |
||
float | zmax = 2f , |
||
float | r = 1.0f |
||
) |
Constructor with parameters.
transf | |
material | |
zmin | |
zmax | |
r |
PGENLib.Cylinder.Cylinder | ( | Transformation | transf, |
Material | material, | ||
float | zmin, | ||
float | zmax, | ||
float | phimax, | ||
float | r = 1.0f |
||
) |
Constructor with parameters.
transf | |
material | |
zmin | |
zmax | |
phimax | |
r |
|
virtual |
Determine whether a ray hits the shape or not
ray |
Reimplemented from PGENLib.Shape.
Compute the intersection between a ray and the shape. Returns a HitRecord object, or Null if the ray doesn't hit the plane.
Reimplemented from PGENLib.Shape.