Degrees of Freedom
We borrow this concept from physics, chemistry, and mechanics. In mechanics, degrees of freedom refers to the six degrees of freedom:
Six degrees of freedom (6DoF) refers to the freedom of movement of a rigid body in three-dimensional space. Specifically, the body is free to change position as forward/backward (surge), up/down (heave), left/right (sway) translation in three perpendicular axes, combined with changes in orientation through rotation about three perpendicular axes, often termed yaw (normal axis), pitch (transverse axis), and roll (longitudinal axis).
– Wikipedia
Wikipedia (Six degrees of freedom): https://en.wikipedia.org/wiki/Six_degrees_of_freedom.
Six degrees of freedom in a three-dimensional space:
Figure 2.2: Six degrees of freedom
Source: Wikimedia Commons (https://commons.wikimedia.org/wiki/File:6DOF_en.jpg)
The concept of six degrees of freedom can be used as a metaphor for code behaviors and can...