Click or drag to resize

VisualTurnTo Method (Matrix, Double, Double, Double)

Matrix TurnTo method

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

Parameters

targetMatrix
Type: Microsoft.DirectXMatrix
The matrix to turn to, relative to the origin.
speed
Type: SystemDouble
The speed to be used when turning.
acc
Type: SystemDouble
The acceleration to be used when turning.
dec
Type: SystemDouble
The deceleration to be used when turning.
Examples
C#
// This example will turn a visual to 90 degrees around the Y axis,
// using a given speed, acceleration and deceleration.
void TurnToMDDD_OnClick(Visual sender, PickInfo pickInfo)
{
    sender.TurnTo(Matrix.RotationY90, 20, 5, 5);
}
See Also