MATHEMATICAL ELEMENTS FOR COMPUTER GRAPHICS