Skip to content

Commit 07204bf

Browse files
committed
Fix stuff
1 parent 7ab4cdb commit 07204bf

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

common/src/main/kotlin/com/lambda/util/math/Range.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ fun ClosedRange<Double>.normalize(value: Double): Double =
3737
fun ClosedRange<Float>.normalize(value: Float): Float =
3838
scale(value, 0.0f, 1.0f)
3939

40-
/**
41-
* Inverts the range.
42-
*/
43-
fun ClosedRange<Double>.inverted() = endInclusive to start
44-
4540
/**
4641
* Inverts the range.
4742
*/

common/src/main/kotlin/com/lambda/util/math/Rect.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package com.lambda.util.math
22

33
import com.lambda.util.math.MathUtils.lerp
4+
import kotlin.math.max
5+
import kotlin.math.min
46

57
data class Rect(private val pos1: Vec2d, private val pos2: Vec2d) {
68
val left = pos1.x
@@ -50,4 +52,4 @@ data class Rect(private val pos1: Vec2d, private val pos2: Vec2d) {
5052
fun basedOn(base: Vec2d, size: Vec2d) =
5153
Rect(base, base + size)
5254
}
53-
}
55+
}

0 commit comments

Comments
 (0)