scale

fun Vec3.scale(factor: Double): Vec3

Scales the vector by the given factor and returns the result.