Mathematical Tools in Computer Graphics with C# Implementations