Skip to content

Commit

Permalink
Further increase iteration distance. Tested for t=200s and 1000 decim…
Browse files Browse the repository at this point in the history
…al places - ITER_DIST = 0.61 still gave correct results.
  • Loading branch information
LMesaric committed Dec 19, 2018
1 parent c72d02a commit cc1458a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hr/fer/dismat2/photon/PhotonDemo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class PhotonDemo(private var position: Point, private var trajectory: Line, priv
/**
* Iteration distance used in ray casting.
*/
private val ITER_DIST = BigDecimal("0.2")
private val ITER_DIST = BigDecimal("0.4")
}

private fun distanceFromCenter(line: Line, circle: Circle): BigDecimal {
Expand Down

0 comments on commit cc1458a

Please sign in to comment.