setScalar

fun setScalar(scalar: Double): Vector4

Sets all vector components to scalar.

Return

A reference to this vector.