VisualRotate Method (Axis, Double, Double) |
Namespace: Demo3D.Visuals
public void Rotate( Axis axis, double speed, double acc )
// This example will rotate a visual (sender) around its own Y axis when clicked, // at a speed of 360 degrees per second (1 revolution per second), after accelerating to this speed // at 180 deg/s^2 [Auto("OnClick")] void RotateADD_OnClick(Visual sender, PickInfo pickInfo) { sender.Rotate(Axis.Y, 360, 180); }