In curved spaces (like the sphere and the saddle-shaped surfaces in the adjacent frame), the geometry is called non-Euclidean geometry, and some of the rules of normal geometry are no longer valid. For example, on curved surfaces the sum of the angles of a triangle is not 180 degrees.
Animation: geometry on curved surfaces