-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/nevcohen/CameraProject.git
Conflicts: cameraproject/src/geometries/Tube.java cameraproject/src/unittests/geometries/TriangleTest.java cameraproject/src/unittests/geometries/TubeTest.java
- Loading branch information
Showing
6 changed files
with
60 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package unittests.geometries; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
import org.junit.Test; | ||
|
||
public class PlaneTest { | ||
|
||
@Test | ||
public void testGetNormalPoint3D() { | ||
fail("Not yet implemented"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package unittests.geometries; | ||
|
||
import static org.junit.Assert.*; | ||
import geometries.*; | ||
import primitives.*; | ||
|
||
import org.junit.Test; | ||
|
||
public class SphereTest { | ||
|
||
@Test | ||
public void testGetNormal() { | ||
Sphere s = new Sphere(new Point3D(1,1,1), 2); | ||
|
||
// ============ Equivalence Partitions Tests ============== | ||
assertEquals("",s.getNormal(new Point3D(1,1,3)),new Vector(0,0,1)); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
package unittests.geometries; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
import org.junit.Test; | ||
|
||
import geometries.Tube; | ||
import primitives.Point3D; | ||
import primitives.Ray; | ||
import primitives.Vector; | ||
|
||
public class TubeTest { | ||
|
||
@Test | ||
public void testGetNormal() { | ||
Tube tube = new Tube(new Ray(new Point3D(0, 0, 2), new Vector(new Point3D(0, 0, 1))), 2); | ||
|
||
// ============ Equivalence Partitions Tests ============== | ||
assertEquals("",tube.getNormal(new Point3D(0,2,0)),new Vector(0,-1,0)); | ||
} | ||
|
||
} | ||
package unittests.geometries; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
import org.junit.Test; | ||
|
||
import geometries.Tube; | ||
import primitives.Point3D; | ||
import primitives.Ray; | ||
import primitives.Vector; | ||
|
||
public class TubeTest { | ||
|
||
@Test | ||
public void testGetNormal() { | ||
Tube tube = new Tube(new Ray(new Point3D(0, 0, 2), new Vector(new Point3D(0, 0, 1))), 2); | ||
|
||
// ============ Equivalence Partitions Tests ============== | ||
assertEquals("",tube.getNormal(new Point3D(0,2,0)),new Vector(0,1,0)); | ||
|
||
assertEquals("",tube.getNormal(new Point3D(0,2,2)),new Vector(0,1,0));//------- | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
* | ||
* hhhh | ||
*/ | ||
package unittests.primitives; | ||
|
||
|