MathGroup Archive 2002

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

Search the Archive

Re: Translations

  • To: mathgroup at smc.vnet.net
  • Subject: [mg32473] Re: [mg32448] Translations
  • From: BobHanlon at aol.com
  • Date: Tue, 22 Jan 2002 03:20:00 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

With rotation:

Needs["Geometry`Rotations`"];

Module[{n=31,trans={6,6}, rot = 2Pi,
      pts = {{-4,-4},{-3,-2},{-2,-4}},k,r, mid},
 
    k = Length[pts];
    mid = (Plus@@pts)/k;
    Table[r=m/(n-1); Show[Graphics[{Hue[1-3r/10],
            Polygon[
              Rotate2D[#,rot*r,mid+trans*r]& /@
 
                (pts+Table[trans*r,{k}])]}],
        Axes->True,
        PlotRange->{{-5,5},{-5,5}},
 
        AspectRatio -> Automatic],
      {m,0,n-1}]];


Bob Hanlon
Chantilly, VA  USA


  • Prev by Date: Re: Why doesn't this rule work?
  • Next by Date: Re: parameter restrictions
  • Previous by thread: Re: Translations
  • Next by thread: Re: Translations