As an option, you can use the following approach for X , Y, and Z at the same time:
translation.columns.3 = simd_float4(-0.1, 0, 0, 1)
The last element in columns.3 is a uniform coordinate , it is 1 .

The columns of a 4x4 matrix look like this:
public var columns: (simd_float4, simd_float4, simd_float4, simd_float4)
Hope this helps.
Argeo
source share