Motion Study of Two- and Three-Dimensional Pantograph Mechanisms