Convert orx-shader-phrases and orx-noise to MPP
This commit is contained in:
6
orx-noise/src/commonMain/kotlin/MathUtils.kt
Normal file
6
orx-noise/src/commonMain/kotlin/MathUtils.kt
Normal file
@@ -0,0 +1,6 @@
|
||||
package org.openrndr.extra.noise
|
||||
|
||||
|
||||
fun Double.fastFloor(): Int {
|
||||
return if (this >= 0) this.toInt() else this.toInt() - 1
|
||||
}
|
||||
Reference in New Issue
Block a user