Difference between revisions of "Sequential Raytracer Assignment"
Jump to navigation
Jump to search
| Line 5: | Line 5: | ||
=Code To Investigate= | =Code To Investigate= | ||
==RayTraceContext== | ==RayTraceContext== | ||
| − | + | <syntaxhighlight lang="java"> | |
| + | public interface RayTraceContext { | ||
int width(); | int width(); | ||
| Line 13: | Line 14: | ||
void markAndRender(int xMin, int yMin, int xMaxExclusive, int yMaxExclusive); | void markAndRender(int xMin, int yMin, int xMaxExclusive, int yMaxExclusive); | ||
| − | }</ | + | } |
| + | </syntaxhighlight> | ||
=Code To Implement= | =Code To Implement= | ||
Revision as of 17:58, 8 May 2025
Contents
Motivation
We learn the basics of using the raytracer.
Code To Investigate
RayTraceContext
public interface RayTraceContext {
int width();
int height();
void mark(int xMin, int yMin, int xMaxExclusive, int yMaxExclusive);
void markAndRender(int xMin, int yMin, int xMaxExclusive, int yMaxExclusive);
}
Code To Implement
SequentialRayTracer
| class: | SequentialRayTracer.java | |
| methods: | rayTrace | |
| package: | raytrace.group | |
| source folder: | student/src/main/java |
method: public void rayTrace(RayTraceContext context, Scheduler scheduler)
(sequential implementation only)
Checking Your Solution
Visualization
| class: | RayTracerViz.java | VIZ |
| package: | raytrace.viz | |
| source folder: | student/src/main/java |
Correctness
| class: | _SequentialRayTracerTestSuite.java | |
| package: | raytrace.group | |
| source folder: | testing/src/test/java |