![]() |
PhotoGENius V1.0.0
A basic library for generating photorealistic images, developed for the course Numerical techniques for photorealistic image generation.
|
A 2D plane that you can put in the scene. Unless transformations are applied, the z=0 plane is constructed. More...
Public Member Functions | |
XyPlane () | |
Constructor without any parameter. | |
XyPlane (Transformation transf, Material material) | |
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... | |
Additional Inherited Members | |
![]() | |
Transformation | Transf |
Material | Material |
A 2D plane that you can put in the scene. Unless transformations are applied, the z=0 plane is constructed.
PGENLib.XyPlane.XyPlane | ( | Transformation | transf, |
Material | material | ||
) |
Constructor with parameters.
transf | |
material |
|
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.