void DoGetAngularVelocity() { switch (velocityType) { case setAngularVelocityType.getAngularVelocity: velocity = poseAction.GetAngularVelocity(device); break; case setAngularVelocityType.getAngularLastStateVelocity: velocity = poseAction.GetLastAngularVelocity(device); break; } vector.Value = velocity; x.Value = velocity.x; y.Value = velocity.y; z.Value = velocity.z; }