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

Public Member Functions

 World ()
 Empty constructor
 
 World (List< Shape > shapes, List< PointLight > pointLights)
 Constructor with parameters More...
 
void AddShape (Shape sh)
 Add a shape in the list of shapes present in the world. More...
 
void AddLight (PointLight light)
 Add a ligth in the list of shapes present in the world. More...
 
HitRecordRayIntersection (Ray intRay)
 Determine whether a ray intersects any of the objects in this world. More...
 
bool IsPointVisible (Point point, Point observerPosition)
 Checks wheater a point is visible. More...
 

Public Attributes

List< ShapeShapes
 Class that represents a world. It is the variable to which we add the shapes.
 
List< PointLightPointLights
 

Constructor & Destructor Documentation

◆ World()

PGENLib.World.World ( List< Shape shapes,
List< PointLight pointLights 
)

Constructor with parameters

Parameters
shapes
pointLights

Member Function Documentation

◆ AddLight()

void PGENLib.World.AddLight ( PointLight  light)

Add a ligth in the list of shapes present in the world.

Parameters
lightPointLight object to be added in the world

◆ AddShape()

void PGENLib.World.AddShape ( Shape  sh)

Add a shape in the list of shapes present in the world.

Parameters
shShape object to be added in the world

◆ IsPointVisible()

bool PGENLib.World.IsPointVisible ( Point  point,
Point  observerPosition 
)

Checks wheater a point is visible.

Parameters
point
observerPosition
Returns

◆ RayIntersection()

HitRecord? PGENLib.World.RayIntersection ( Ray  intRay)

Determine whether a ray intersects any of the objects in this world.

Parameters
intRay
Returns

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