Skip to content

Commit

Permalink
plane normal test
Browse files Browse the repository at this point in the history
  • Loading branch information
Eliyahu-r authored and Eliyahu-r committed Mar 21, 2021
1 parent 23636ae commit 1f9e826
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cameraproject/src/unittests/geometries/PlaneTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@

import org.junit.Test;

import geometries.Plane;
import primitives.Point3D;
import primitives.Vector;

public class PlaneTest {

@Test
public void testGetNormalPoint3D() {
fail("Not yet implemented");
public void testGetNormalPoint3D() { // not sure about this ver
Plane p = new Plane(new Point3D(1,1,1),new Vector(1,2,3));
assertEquals("Mistake found with GetNormal",p.getNormal(new Point3D(7,-2,1)),new Vector(1,2,3).normalize());
}

}

0 comments on commit 1f9e826

Please sign in to comment.