withAxis

@NotNull
open fun withAxis(@NotNull axis: @NotNull KeyframeAxis): @NotNull KeyframeVector

Transforms each component with the corresponding axis mapping.


var offset = vector.withAxis(KeyframeAxis.SCALE);

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