openrndr icon indicating copy to clipboard operation
openrndr copied to clipboard

Test permanently switched off - openrndr-math: TestTransforms / projections / should un-project a projected point back into 3D

Open morisil opened this issue 5 years ago • 1 comments

Describe the bug While converting openrndr-math into kotlin mpp I noticed that one test there is permanently switched off

To Reproduce uncomment the test, it will fail

Expected behavior The test should be either removed or fixed.

Context:

  • OS and version: all
  • OpenRNDR version: 0.3.45 (latest)
  • Java Version: 15

morisil avatar Mar 22 '21 12:03 morisil

https://github.com/openrndr/openrndr/blob/master/openrndr-math/src/commonTest/kotlin/org/openrndr/math/transforms/TestTransforms.kt#L269

        /* this test should be fixed
        it("should un-project a projected point back into 3D ") {

            val c = Vector3(10.0, 10.0, 10.0)
            val p = perspective(45.0, 4.0 / 3, 0.1)
            val v = lookAt(Vector3(1.0, 2.0, 3.0), Vector3.ZERO)
            val r = project(c, p, v, 100, 100)

            unproject(r, p, v, 100, 100).closeTo(c, maxError)
        }
         */

hamoid avatar Apr 17 '23 07:04 hamoid