clampToDisk

fun clampToDisk(point: Vec3, diskRadius: Float): Vec3(source)

A point pulled in flat to the disk's rim when it lies past it, keeping its height.