예제 #1
0
        private RotationInfo TryDequeueLastRotateInfo()
        {
            RotationInfo result = null;

            while (_rotationQueue.TryDequeue(out var info))
            {
                result = info;
            }

            return(result);
        }
예제 #2
0
        public Task RotateYZAsync(int angles)
        {
            var rotationInfo = new RotationInfo
            {
                RotationType        = RotationType.RotationYZ,
                RotateRadiansTotals = angles * Math.PI / 180,
            };

            _rotationQueue.Enqueue(rotationInfo);
            TryStartProcessRotationTask();
            return(Task.CompletedTask);
        }