Click or drag to resize

VisualRotateToLocalX Method

Rotate around the local X axis a given amount at a given speed.

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public void RotateToLocalX(
	double localXDegrees,
	double degreesPerSecond
)

Parameters

localXDegrees
Type: SystemDouble
The total angle to rotate in degrees.
degreesPerSecond
Type: SystemDouble
The speed at which to rotate in degrees per second.
Examples
C#
// This example will rotate a visual around its local X axis (its parent's X axis) a given amount
// at a given speed.
void RotateToLocalX_OnClick(Visual sender, PickInfo pickInfo)
{
    sender.RotateToLocalX(90, 45);
}
See Also