Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: two-dimensional coordinate transformation

by Roy Johnson (Monsignor)
on Nov 02, 2005 at 22:06 UTC ( #505135=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub scale {
      my ($coords, $factor}
      map { $_ * $factor } @$coords
    }
    
  2. or download this
    $a_coords = [ [0,0], [0,10], [10,10], [10,0] ]; # a square
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://505135]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2020-05-29 17:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (170 votes). Check out past polls.

    Notices?