Returns a new Vector4. If value is undefined, then {x: 0, y: 0, z: 0, w: 0} is returned.
value
{x: 0, y: 0, z: 0, w: 0}
Parses a JSON string representation of a Vector4.
Vector4
A JSON string either in the form of [x, y, z, w] or {"x": 0, "y": 0, "z": 0, "w": 0}.
[x, y, z, w]
{"x": 0, "y": 0, "z": 0, "w": 0}
A parsed Vector4.
Returns a new Vector4. If
value
is undefined, then{x: 0, y: 0, z: 0, w: 0}
is returned.