O'Reilly logo

Learning Object-Oriented Programming by Gastón C. Hillar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required