Example #1
0
        public async void RotateAsync(float angle, Plane plane)
        {
            var rotationMatrix = CreateRotationMatrix(plane, angle);

            await Task.Run(() => Vertices.AsParallel()
                           .ForAll(vertex => Vertex.Rotate(ref vertex, rotationMatrix)));
        }
Example #2
0
        public void Rotate(float angle, Plane plane)
        {
            var rotationMatrix = CreateRotationMatrix(plane, angle);

            Vertices.AsParallel()
            .ForAll(vertex => Vertex.Rotate(ref vertex, rotationMatrix));
        }