The quadratus femoris laterally rotates the femur at the hip joint and is innervated by the nerve to the quadratus femoris.
The gluteus minimus and medius muscles are two muscles of the more superficial group in the gluteal region (Fig. 6.45).