BoundingFrustum::CreateFromMatrix function (directxcollision.h)

Creates a BoundingFrustum from the specified perspective projection matrix.

Syntax

void XM_CALLCONV CreateFromMatrix(
  [out, ref] BoundingFrustum & Out,
  [in]       FXMMATRIX         Projection,
  [in]       bool              rhcoords
) noexcept;

Parameters

[out, ref] Out

The new BoundingFrustum.

[in] Projection

The projection matrix to create the BoundingFrustum from.

[in] rhcoords

If set to false (the default), this indicates the projection matrix is in left-handed coordinates. Set it to true if using right-handed coordinates.

This parameter was added in DirectXMath 3.16.

Return value

This method does not return a value.

Remarks

This method is not suitable for use with orthographic projection matricies.

Platform Requirements

Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8. Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.

Requirements

Requirement Value
Target Platform Windows
Header directxcollision.h

See also

BoundingFrustum

Methods

Reference