We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2918f96 commit c269194Copy full SHA for c269194
1 file changed
common/src/main/kotlin/com/lambda/interaction/request/rotating/visibilty/PointSelection.kt
@@ -35,7 +35,7 @@ enum class PointSelection(val select: (Collection<VisibilityChecker.CheckedHit>)
35
?.times(1 / hits.size.toDouble())
36
37
optimum?.let {
38
- hits.minByOrNull { it.hit.pos distSq optimum }
+ hits.minByOrNull { it.hit.pos?.distSq(optimum) ?: 0.0 }
39
}
40
})
41
0 commit comments