openrndr / org.openrndr.math / smoothstep

smoothstep

fun smoothstep(edge0: Double, edge1: Double, x: Double): Double (source)

Smoothstep

Parameters

edge0 -

edge1 -

x -

Return
a mapped value in the interval 0,1

fun Vector2.smoothstep(edge0: Vector2, edge1: Vector2): Vector2 (source)
fun Vector3.smoothstep(edge0: Vector3, edge1: Vector3): Vector3 (source)
fun Vector4.smoothstep(edge0: Vector4, edge1: Vector4): Vector4 (source)