Matthen

Confusing Dots

May 5th, 2015
919
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. ps = Flatten[
  2. Table[
  3. {x, y, 0}
  4. , {x, -3, 3, 0.1}, {y, -3, 3, 0.1}],
  5. 1];
  6. Manipulate[
  7. W = ({
  8. {1, 2, 0},
  9. {-1, 1, 1}
  10. }).RotationMatrix[\[Theta], {0, 0, 1}];
  11. ps2d = ps.Transpose[W];
  12. Graphics[
  13. {Yellow, PointSize[Medium], Point[ps2d]}
  14. , Background -> RGBColor[0.1, 0.3, 0.15], PlotRange -> 3]
  15. , {\[Theta], 0, Pi/2}]
Advertisement
Add Comment
Please, Sign In to add comment