Orbital eccentricity
Where eobj is the eccentricity, ra is the apoapsis (far point) of the object's orbit, and rp is the periapsis (near point) of the object's orbit. The near and far points are the apsides.