Tag: cartesian

Dec

Bezier curves prefer tea

My maths professor was hammering on the fact that Citroen used Bezier curves to make sure their cars have aesthetically pleasing curves. Again. (This is not a sponsored post from the automaker). While I appreciate his effort in trying to make what I’m learning relevant to the real world, I kinda got the idea that […]

Jul

Unwrapping flowers

Kyle McDonald and Golan Levin used some magic software on images of some unsuspecting flowers. They sliced a flower from the centre to its petals. Then grabbing the cut ends, they bunched the petals together and then dragged them out like playing an accordion. Basically, they were doing some polar and Cartesian conversion on the […]

Oct

Image rotation with bilinear interpolation

In this article, I’ll show you how to rotate an image about its centre. 3 assignment methods will be shown, assign source pixels to destination pixels assign destination pixels from source pixels assign destination pixels from source pixels with bilinear interpolation I’ll show you the code, then the results for comparison. So what’s bilinear interpolation? […]

Oct

Converting between raster, Cartesian and polar coordinates

As with the article on linear interpolation, this article is in preparation for the upcoming discussion on image rotation. I just realised that if I don’t write this, I’m going to take a long time explaining the image rotation code. We’ve already covered Cartesian coordinates. So what are raster and polar coordinates? Raster coordinates I […]

Sep

Cartesian coordinates and transformation matrices

If you’re doing any work in 3D, you will need to know about the Cartesian coordinate system and transformation matrices. Cartesian coordinates are typically used to represent the world in 3D programming. Transformation matrices are matrices representing operations on 3D points and objects. The typical operations are translation, rotation, scaling. 2 dimensional Cartesian coordinates You […]