![]() |
PhotoGENius V1.0.0
A basic library for generating photorealistic images, developed for the course Numerical techniques for photorealistic image generation.
|
A 3D unit sphere centered on the axes origin. More...
Public Member Functions | |
Sphere (Transformation transf, Material material) | |
Sphere (Material material) | |
Sphere (Transformation transformation) | |
override? HitRecord | RayIntersection (Ray ray) |
Compute the intersection between a ray and the shape. More... | |
override bool | QuickRayIntersection (Ray ray) |
Determine whether a ray hits the shape or not More... | |
Normal | SphereNormal (Point point, Vec dir) |
Computes the normal in the intersection point of a ray and the surface of a unit sphere. The normal has always the opposite direction with respect to a given Ray. More... | |
Vec2d | SpherePointToUv (Point point) |
Convert the 3D intersection point into a 2D point, of coordinates (u,v). 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 3D unit sphere centered on the axes origin.
|
virtual |
Determine whether a ray hits the shape or not
ray |
NotImplementedException |
Reimplemented from PGENLib.Shape.
Compute the intersection between a ray and the shape.
ray |
Reimplemented from PGENLib.Shape.
Convert the 3D intersection point into a 2D point, of coordinates (u,v).
point |