PhotoGENius V1.0.0
A basic library for generating photorealistic images, developed for the course Numerical techniques for photorealistic image generation.
Public Member Functions | List of all members
PGENLib.XyPlane Class Reference

A 2D plane that you can put in the scene. Unless transformations are applied, the z=0 plane is constructed. More...

Inheritance diagram for PGENLib.XyPlane:
PGENLib.Shape

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

- Public Attributes inherited from PGENLib.Shape
Transformation Transf
 
Material Material
 

Detailed Description

A 2D plane that you can put in the scene. Unless transformations are applied, the z=0 plane is constructed.

Constructor & Destructor Documentation

◆ XyPlane()

PGENLib.XyPlane.XyPlane ( Transformation  transf,
Material  material 
)

Constructor with parameters.

Parameters
transf
material

Member Function Documentation

◆ QuickRayIntersection()

override bool PGENLib.XyPlane.QuickRayIntersection ( Ray  ray)
virtual

Determine whether a ray hits the shape or not

Parameters
ray
Returns

Reimplemented from PGENLib.Shape.

◆ RayIntersection()

override? HitRecord PGENLib.XyPlane.RayIntersection ( Ray  ray)
virtual

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.


The documentation for this class was generated from the following file: