as this uses the legacy tuple format.
Normalizes a tuple such that unnamed fields match the values of named fields.
const vector = tup(1, 2)({ z: 3 });const { x, y, z } = normalize_tuple(vector, ["x", "y", "z"]); Copy
const vector = tup(1, 2)({ z: 3 });const { x, y, z } = normalize_tuple(vector, ["x", "y", "z"]);
Generated using TypeDoc
Deprecated
as this uses the legacy tuple format.
Normalizes a tuple such that unnamed fields match the values of named fields.
Example