|
|
List< Shape > | Shapes |
| | Class that represents a world. It is the variable to which we add the shapes.
|
| |
|
List< PointLight > | PointLights |
| |
◆ World()
| PGENLib.World.World |
( |
List< Shape > |
shapes, |
|
|
List< PointLight > |
pointLights |
|
) |
| |
Constructor with parameters
- Parameters
-
◆ AddLight()
Add a ligth in the list of shapes present in the world.
- Parameters
-
◆ AddShape()
| void PGENLib.World.AddShape |
( |
Shape |
sh | ) |
|
Add a shape in the list of shapes present in the world.
- Parameters
-
| sh | Shape object to be added in the world |
◆ IsPointVisible()
| bool PGENLib.World.IsPointVisible |
( |
Point |
point, |
|
|
Point |
observerPosition |
|
) |
| |
Checks wheater a point is visible.
- Parameters
-
- Returns
◆ RayIntersection()
Determine whether a ray intersects any of the objects in this world.
- Parameters
-
- Returns
The documentation for this struct was generated from the following file:
- /Users/fra/Documenti/Università/Magistrale/SNIF/PhotoGENius/PGENLib/World.cs