Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: two-dimensional coordinate transformation

by Roy Johnson (Monsignor)
on Nov 02, 2005 at 22:06 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://505135]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (1)
As of 2024-04-25 00:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found