[orx-noise] Add tools for functional composition
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user