Difference between revisions of "Sequential Raytracer Assignment"

From CSE231 Wiki
Jump to navigation Jump to search
(Created page with "=Code To Investigate= ==RayTraceContext== ==Scheduler== =Code To Implement= ==SequentialRayTracer== {{CodeToImplement|SequentialRayTracer|rayTrace|raytrace.group}} {{Sequen...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
=Code To Investigate=
 
=Code To Investigate=
 
==RayTraceContext==
 
==RayTraceContext==
 +
<nowiki>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);
 +
}</nowiki>
  
 
==Scheduler==
 
==Scheduler==
 +
<nowiki>public interface Scheduler {
 +
void void_fork(Runnable runnable);
 +
}</nowiki>
  
 
=Code To Implement=
 
=Code To Implement=
Line 12: Line 24:
 
=Checking Your Solution=
 
=Checking Your Solution=
 
==Visualization==
 
==Visualization==
==Unit Testing==
+
{{Viz|RayTracerViz|raytrace.viz|main}}
 +
 
 +
==Correctness==
 +
{{TestSuite|_SequentialRayTracerTestSuite|raytrace.group}}

Latest revision as of 16:02, 26 April 2022

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);
}

Scheduler

public interface Scheduler {
	void void_fork(Runnable runnable);
}

Code To Implement

SequentialRayTracer

class: SequentialRayTracer.java Java.png
methods: rayTrace
package: raytrace.group
source folder: student/src/main/java

method: public void rayTrace(RayTraceContext context, Scheduler scheduler) Sequential.svg (sequential implementation only)

Checking Your Solution

Visualization

class: RayTracerViz.java VIZ
package: raytrace.viz
source folder: student/src/main/java

Correctness

class: _SequentialRayTracerTestSuite.java Junit.png
package: raytrace.group
source folder: testing/src/test/java