private void AddCuboid(double x, double y, double z, Color color, double transX, double transY, double transZ, int degrees, Axis axis) { Cuboid cuboid = new Cuboid(x, y, z, color); cuboid.Rotate(degrees, axis); cuboid.Translate(transX, transY, transZ); cuboids.Add(cuboid); }