withAxis
Transforms each component with the corresponding axis mapping.
var offset = vector.withAxis(KeyframeAxis.SCALE);
Content copied to clipboard
Return
the transformed vector
Since
3.7.0
Parameters
axis
the per-axis transformations
Throws
if an axis transformation throws while mapping a constant component