Function directx_math::XMVector3ComponentsFromNormal[][src]

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.

Parameters

pParallel Address of the component of V that is parallel to Normal.

pPerpendicular Address of the component of V that is perpendicular to Normal.

V 3D vector to break into components.

Normal 3D reference normal vector.

Return value

None.

Reference

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