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
Feb 21, 2017

Jan 31, 2017

Jan 24, 2017

Jan 18, 2017

Jan 7, 2017

Dec 30, 2016

Dec 8, 2016

Nov 28, 2016

Nov 27, 2016

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