scaleHorizontal

fun Vec3.scaleHorizontal(factor: Double): Vec3

Scales the horizontal part (x and z) of the vector by the given factor and returns the result.