Fixed normalizeGenerator

Modified the angle of rotation so that we rotate by a negative theta if
need be. (This only affects the sine function.)