pygame is
Simple DirectMedia Layer is
Site Swing

vectar - 1.0

Branden Brown (unsane)



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.


Home Page:


click to view original size


vectar - 1.0 - Jun 15, 2009 account Comments

If you wish to leave a comment with your 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? :)

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Oct 1, 2015

Sep 11, 2015

Sep 6, 2015

Aug 26, 2015

Aug 25, 2015

Aug 21, 2015

Aug 16, 2015

Jul 30, 2015

Jun 24, 2015

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