Longitudinal muscles function in opposition to circular muscles. When longitudinal muscles contract, a segment shortens.