Click or drag to resize

VisualTurnTo Method (Matrix)

Immediate Matrix TurnTo

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public void TurnTo(
	Matrix targetMatrix
)

Parameters

targetMatrix
Type: Microsoft.DirectXMatrix
The matrix to turn to.
Examples
C#
// This example will turn a visual to 90 degrees around the Y axis immediately.
void TurnToM_OnClick(Visual sender, PickInfo pickInfo)
{
    sender.TurnTo(Matrix.RotationY90);
}
See Also