MathGroup Archive 2002

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

Search the Archive

Re: Translations


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