MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Translations

  • To: mathgroup at
  • Subject: [mg32453] Re: [mg32448] Translations
  • From: Ken Levasseur <Kenneth_Levasseur at>
  • Date: Tue, 22 Jan 2002 03:19:14 -0500 (EST)
  • References: <>
  • Sender: owner-wri-mathgroup at


Here is one way to generate the frames, using a function (tr) that
generates linear combinations of two sets of points (start and end) that
are presumed to have the same length:

tr[start_List, end_List, lambda_] :=
  MapThread[(1 - lambda)*#1 + lambda*#2 & , {start, end}]
(Show[Graphics[Polygon[tr[start, end, #1]]],
    PlotRange -> {{-10, 10}, {-10, 10}}] & ) /@
  Range[0, 1, 1/30]

Ken Levasseur
Math Sci.
UMass Lowell

manuel avalos wrote:

> Hello
> Perhaps if I state my problem you might suggest a method using
> mathematica how it could be accomplished.
> How can I translate a graph, say a triangle, in an R2 coordinate system
> to another given position on the x y plane showing all the various
> stages from the one position to the other?
> The triangle was formed by connecting the points (-4,4),(-3,-2) and
> (-2,-4) by straight lines...and another triangle was formed by
> translating that triangle by (6,6). Suppose you want to move the first
> triangle smoothly to the position of the second triangle using, let's
> say, a total of 31 frames numbered- 0, 1, 2,...30. How would one go
> about generating each frame?
> Thanks for whatever
> Manuel

  • References:
  • Prev by Date: Re: parallel and remote computing
  • Next by Date: Re: How to separate imaginary unit inside an arbitrary function?
  • Previous by thread: Translations
  • Next by thread: Re: Translations