Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Library for the control of volume in Director
Encrypt/Decrypt a file
Yak
StyleUtil
Forward and Reverse (Shitf+Tab) between Fields
Convert Data
Installer
Text Member Menu System
Time Difference
Echo Vibes
MediaMacros Xtras Mall
 

 

 

Behavior Rotate Vertexlist

Added on 2/7/2006

 

Compatibilities:
D8 D8_5 D9 Mac PC

This item has not yet been rated

Author: Chunick (website)

This custom handler will allow you to rotate a vertexList directly.

on rotateVectorShape vList, vAngle
  vCount = vList.count
  rad = vAngle / 180.0 * pi
  
  repeat with i = 1 to vCount
    if vList[i].ilk = #propList then
      nCount = vList[i].count
      repeat with j = 1 to nCount
        pPoint = vList[i][j]
        u = cos(rad) * (pPoint[1]) - sin(rad) * (pPoint[2])
        v = sin(rad) * (pPoint[1]) + cos(rad) * (pPoint[2])
        
        vList[i][j] = point(u,v)
      end repeat
    end if
  end repeat
  
  return vList
  
end

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail