Share via


Matrix.CreateWorld Method (Vector3%, Vector3%, Vector3%, Matrix%)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Creates a world matrix with the specified parameters.

Namespace:  Microsoft.Xna.Framework
Assembly:  Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)

Syntax

'Declaration
Public Shared Sub CreateWorld ( _
    ByRef position As Vector3, _
    ByRef forward As Vector3, _
    ByRef up As Vector3, _
    <OutAttribute> ByRef result As Matrix _
)
public static void CreateWorld(
    ref Vector3 position,
    ref Vector3 forward,
    ref Vector3 up,
    out Matrix result
)

Parameters

Remarks

This matrix includes rotation and translation, but not scaling.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.