[][src]Function directx_math::XMVector3ComponentsFromNormal

pub fn XMVector3ComponentsFromNormal(
    pParallel: &mut XMVECTOR,
    pPerpendicular: &mut XMVECTOR,
    V: FXMVECTOR,
    Normal: FXMVECTOR
)

Using a reference normal vector, splits a 3D vector into components that are parallel and perpendicular to the normal.

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