diff --git a/kmath-geometry/src/commonMain/kotlin/space/kscience/kmath/geometry/Line.kt b/kmath-geometry/src/commonMain/kotlin/space/kscience/kmath/geometry/Line.kt index 6413edce9..adc3a8b85 100644 --- a/kmath-geometry/src/commonMain/kotlin/space/kscience/kmath/geometry/Line.kt +++ b/kmath-geometry/src/commonMain/kotlin/space/kscience/kmath/geometry/Line.kt @@ -27,7 +27,6 @@ public fun LineSegment.line(algebra: GeometrySpace): Line Line(begin, end - begin) } - public fun Double.equalFloat(other: Double, maxFloatDelta: Double = 0.000001): Boolean = kotlin.math.abs(this - other) < maxFloatDelta diff --git a/kmath-geometry/src/commonTest/kotlin/space/kscience/kmath/geometry/TangentTest.kt b/kmath-geometry/src/commonTest/kotlin/space/kscience/kmath/geometry/TangentTest.kt deleted file mode 100644 index 4ffd4dcab..000000000 --- a/kmath-geometry/src/commonTest/kotlin/space/kscience/kmath/geometry/TangentTest.kt +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2018-2023 KMath contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -//package space.kscience.kmath.geometry -// -//import space.kscience.kmath.geometry.Euclidean2DSpace.equalLineSegments -//import space.kscience.kmath.geometry.Euclidean2DSpace.vector -//import kotlin.test.Test -//import kotlin.test.assertEquals -//import kotlin.test.assertTrue -// -//class TangentTest { -// @Test -// fun tangent() { -// val c1 = Circle2D(vector(0.0, 0.0), 1.0) -// val c2 = Circle2D(vector(4.0, 0.0), 1.0) -// val routes = arrayListOf( -// DubinsRoutes.RSR, -// DubinsRoutes.RSL, -// DubinsRoutes.LSR, -// DubinsRoutes.LSL -// ) -// val segments = arrayListOf>( -// LineSegment(begin = vector(0.0, 1.0), -// end = vector(4.0, 1.0)), -// LineSegment(begin = vector(0.5, 0.8660254), -// end = vector(3.5, -0.8660254)), -// LineSegment(begin = vector(0.5, -0.8660254), -// end = vector(3.5, 0.8660254)), -// LineSegment(begin = vector(0.0, -1.0), -// end = vector(4.0, -1.0)) -// ) -// -// val tangentMap = c1.tangentsToCircle(c2) -// val tangentMapKeys = tangentMap.keys.toList() -// val tangentMapValues = tangentMap.values.toList() -// -// assertEquals(routes, tangentMapKeys) -// for (i in segments.indices) { -// assertTrue(equalLineSegments(segments[i], tangentMapValues[i])) -// } -// } -//} \ No newline at end of file