public void InputPointIn2DWithSameXAndSameY_ReturnTrue() { PointIn2D pointIn2D2 = new PointIn2D(1, 2, "S"); var actual = pointIn2D.IsEqual(pointIn2D2); Assert.True(actual); }
public void InputPointIn2DWithDifferentXOrY_ReturnFalse(float x, float y) { PointIn2D pointIn2D2 = new PointIn2D(x, y, "S"); var actual = pointIn2D.IsEqual(pointIn2D2); Assert.False(actual); }
public void InputPointProjectionAndUnitXProjection_ReturnCoordinateOfProjection_InNegativeYDirection() { var pointProjection = new Vector3(0, 0, -1); var unitXProjection = new Vector3((float)0.5, (float)-0.5, (float)0); var actual = projection.GetCoordinatesOfProjection_InPlaneThroughOrigin(pointProjection, unitXProjection); var expected = new PointIn2D((float)0, (float)-1); Assert.Equal(expected, actual); }