 Translate - Maple Help

PolyhedralSets

 Translate
 translate a polyhedral set Calling Sequence Translate(polyset, trans) Parameters

 polyset - polyhedral set trans - polyhedral set representing a vertex, list of rationals, Vector or list/set of equations of the form coordinate = value; translation vector Description

 • This command translates the polyhedral set polyset according to trans. Examples

 > $\mathrm{with}\left(\mathrm{PolyhedralSets}\right):$

Translate the cube by $\left[4,4,4\right]$.

 > $c≔\mathrm{ExampleSets}:-\mathrm{Cube}\left(\right)$
 ${c}{≔}{{}\begin{array}{lll}{\mathrm{Coordinates}}& {:}& \left[{{x}}_{{1}}{,}{{x}}_{{2}}{,}{{x}}_{{3}}\right]\\ {\mathrm{Relations}}& {:}& \left[{-}{{x}}_{{3}}{\le }{1}{,}{{x}}_{{3}}{\le }{1}{,}{-}{{x}}_{{2}}{\le }{1}{,}{{x}}_{{2}}{\le }{1}{,}{-}{{x}}_{{1}}{\le }{1}{,}{{x}}_{{1}}{\le }{1}\right]\end{array}$ (1)
 > $\mathrm{c_trans}≔\mathrm{Translate}\left(c,\left[4,4,4\right]\right)$
 ${\mathrm{c_trans}}{≔}{{}\begin{array}{lll}{\mathrm{Coordinates}}& {:}& \left[{{x}}_{{1}}{,}{{x}}_{{2}}{,}{{x}}_{{3}}\right]\\ {\mathrm{Relations}}& {:}& \left[{-}{{x}}_{{3}}{\le }{-3}{,}{{x}}_{{3}}{\le }{5}{,}{-}{{x}}_{{2}}{\le }{-3}{,}{{x}}_{{2}}{\le }{5}{,}{-}{{x}}_{{1}}{\le }{-3}{,}{{x}}_{{1}}{\le }{5}\right]\end{array}$ (2)
 > $\mathrm{Plot}\left(\left[c,\mathrm{c_trans}\right],\mathrm{orientation}=\left[20,78,0\right]\right)$  Compatibility

 • The PolyhedralSets[Translate] command was introduced in Maple 2015.