[][src]Function directx_math::XMMatrixTranslation

pub fn XMMatrixTranslation(OffsetX: f32, OffsetY: f32, OffsetZ: f32) -> XMMATRIX

Builds a translation matrix from the specified offsets.

Parameters

OffsetX Translation along the x-axis.

OffsetY Translation along the y-axis.

OffsetZ Translation along the z-axis.

Return value

Returns the translation matrix.

Reference

https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMMatrixTranslation