[orx-noise] Add tools for functional composition

This commit is contained in:
Edwin Jakobs
2021-07-25 22:36:07 +02:00
parent c388cbe7e2
commit 454affbdfd
15 changed files with 532 additions and 74 deletions

View File

@@ -59,4 +59,8 @@ fun cubic(seed: Int, x: Double, y: Double, z: Double, interpolator: (Double) ->
cubic(valCoord3D(seed, x0, y3, z3), valCoord3D(seed, x1, y3, z3), valCoord3D(seed, x2, y3, z3), valCoord3D(seed, x3, y3, z3), xs),
ys),
zs) * CUBIC_3D_BOUNDING
}
}
val cubicLinear3D: (Int, Double, Double, Double) -> Double = ::cubicLinear
val cubicQuintic3D: (Int, Double, Double, Double) -> Double = ::cubicQuintic
val cubicHermite3D: (Int, Double, Double, Double) -> Double = ::cubicHermite