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))); }
public void Rotate(float angle, Plane plane) { var rotationMatrix = CreateRotationMatrix(plane, angle); Vertices.AsParallel() .ForAll(vertex => Vertex.Rotate(ref vertex, rotationMatrix)); }