pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
vectar

vectar - 1.0

Branden Brown (unsane)

Tags:

Description

Some trigonometry I put down now so I wouldn't have to again and again in the future. I figured I would release it since it seems there isn't anything of the kind already out here (though I thought there was).

Contains several classes for making and manipulating lists of polar coordinates, whether manually or automatically generated.

Each class has a convert method which returns the polar coordinates in rectangular form in a way suited for pygame.draw.polygon, pygame.draw.lines, or pygame.draw.aalines, or for iterating through for Surface.set_at or something.

I already explained all this stuff as I was doc'ing it, and I chose making this over sleep last night/this morning, so I'm done here.

Links

Home Page: http://sexy.randomnetirc.org/~usane/python/vectar
Source: http://sexy.randomnetirc.org/~usane/python/vectar/vectar.zip

Screenshot


click to view original size

Releases

vectar - 1.0 - Jun 15, 2009

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

July 1, 2009 9:53am - Branden Brown - nickname: (unsane)
Definitely an oops somewhere... I'm planning another release soon with some more operations, better documentation, and more and better examples, though. I was originally planning to hold off on release until I could get a functioning collision detection function, but I can't seem to find any math well-suited to this.
June 18, 2009 8:06pm - Jess Hill - nickname: (jestermon)
Had to rename import vector to import vectar, and akk i get is a little dot flashing from green to red in the middle of the screen. Mouse clicks and keys do nothing.. An oops somewhere? :)
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Jul 22, 2014

Jul 21, 2014


Jul 20, 2014

Jul 19, 2014

Jul 15, 2014

Jul 10, 2014

Jul 9, 2014

Jun 27, 2014



Jun 24, 2014

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)