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: 15.0.2.11458
Syntax
C#
public void RotateToImmediate(
	Axis axis,
	double degrees
)

Parameters

axis
Type: Demo3D.CommonAxis
The axis around which to move.
degrees
Type: SystemDouble
The angle to rotate in degrees.
Examples
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