setScalar

fun setScalar(scalar: Double): Vector2

Sets all vector components to scalar.

Return

A reference to this vector.