code: public static Vector fromPolar (float magnitude, float angle) {
          return new Vector(magnitude * FloatMath.cos(angle), magnitude * FloatMath.sin(angle));
      }
docs: Creates a new vector from polar coordinates.