1. A method for controlling throughout a gait cycle at least one of joint position, impedance or torque of a lower-extremity prosthetic, orthotic, or exoskeleton apparatus worn by a wearer based on an inertially-referenced, intra-cycle trajectory of a portion of the apparatus over underlying terrain.