Guest User

Untitled

a guest
Feb 21st, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. data = {{4, 5}, {6, 7}, {9, 8}};
  2. r[angle_?NumericQ, pivot:{_?NumericQ, _?NumericQ}] = RotationTransform[angle Degree, pivot];
  3. r[45, {1, 1}] /@ data // N
  4.  
  5. {{0.292893, 5.94975}, {0.292893, 8.77817}, {1.70711, 11.6066}}
Add Comment
Please, Sign In to add comment