Click or drag to resize

VisualRotateToImmediate Method

Rotate immediately around a given local axis to a given angle relative to the visual's initial position.

Namespace: Demo3D.Visuals
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntax
C#
public void RotateToImmediate(
	Axis axis,
	double degrees
)

Parameters

axis  Axis
The axis around which to move.
degrees  Double
The angle to rotate in degrees.
Example
C#
// This example will rotate a visual immediately around it's local Y axis
// 50 degrees, relative to its original position when clicked.
void RotateToImmediate_OnClick(Visual sender, PickInfo pickInfo)
{
    sender.RotateToImmediate(Axis.Y, 50);
}
See Also