setMagnitude

public void setMagnitude(double magnitude)

This sets only the magnitude of the Vector.

Parameters

magnitude

sets the magnitude of this Vector.