projectPointsOnBox

fun projectPointsOnBox(virtualEye: Vec3, targetBox: AABB, maxPoints: Int = 128): MutableList<Vec3>?

Projects points onto the targetBox. The points are uniformly distributed from the perspective of virtualEye.

Return

a list of projected points, or null if the virtual eye is inside the target box.


inline fun projectPointsOnBox(virtualEye: Vec3, targetBox: AABB, maxPoints: Int = 128, consumer: (Vec3) -> Unit): Boolean

Projects points onto the targetBox. The points are uniformly distributed from the perspective of virtualEye.

Return

false if the virtual eye is inside the target box.