Curves in Affine and Semi-Euclidean Spaces