Click or drag to resize

VisualTurnTo(Matrix, Double) Method

Matrix TurnTo method.

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

Parameters

targetMatrix  Matrix
The matrix to turn to, relative to the origin.
speed  Double
The speed to be used when turning.
Example
C#
// This example will turn a visual to 90 degrees around the Y axis,
// using a given speed.
void TurnToMD_OnClick(Visual sender, PickInfo pickInfo)
{
    sender.TurnTo(Matrix.RotationY90, 20);
}
See Also