Refactoring existing code in C#

The following code shows an example of the declaration of the method that renders a sphere named RenderSphere and the method that renders a cube named RenderCube in C#:

public static void RenderSphere( int x, int y, int z, int radius, int cameraX, int cameraY, int cameraZ, int cameraDirectionX, int cameraDirectionY, int cameraDirectionZ, int cameraVectorX, int cameraVectorY, int cameraVvectorZ, int cameraPerspectiveFieldOfView, int cameraNearClippingPlane, int cameraFarClippingPlane, int directionalLightX, int directionalLightY, int directionalLightZ, int directionalLightColor) { } public static void RenderCube( int x, int y, int z, int edgeLength, int cameraX, int cameraY, int cameraZ, int cameraDirectionX, int ...

Get JavaScript : Object-Oriented Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.