A quick and painless method to rescale a given set of dimensions to find a best fit size within a new set of dimensions, while retaining apect ratio. Perfect for rescaling images or sprites, and best of all just a few short lines of code!

Finding and plotting points on the circumference of a circle: This article explains how to write a simple function that provides cartesian co-ordinates for a point based on a circles centre co-ordinates, its radius, and the degree of rotation.