""" Line-line intersection algorithm """

# vector class from pygame cookbook http://www.pygame.org/wiki/2DVectorClass
...

Python Line-line intersection test

by Mizipzor, December 01, 2009 17:15, 1 refactoring, tagged with python line intersection algorithm math

Line-line intersection algo...

9e9bb40f93094055bd09193eb3bccbb8 Talk
def openfile(path):
	global lines
	return open(path).readlines()
...

Python fixcase.py

by Mizipzor, November 16, 2009 16:41, 1 refactoring, tagged with python text parse short

While porting way to many f...

9e9bb40f93094055bd09193eb3bccbb8 Talk
// routine for loading all grass sprites we can find
char buffer[32];
std::string setname = "jungle";
...

C++ Call sprintf_s only once

by Mizipzor, January 26, 2009 10:27, 6 refactorings, tagged with loop, C++, while, sprintf_s

Can this routine be done wi...

9e9bb40f93094055bd09193eb3bccbb8 Talk
import random, math, glob, sys
from PIL import Image

...

Python On Dijkstra to find two points...

by Mizipzor, January 25, 2009 21:02

Seems to be working now. It...

9e9bb40f93094055bd09193eb3bccbb8 Talk
import random

INFINITE=1000000000
...

Python Dijkstra to find two points...

by Mizipzor, January 25, 2009 15:43, 1 refactoring, tagged with math, algorithm, path, dijkstra, pathfinding

Discussed on: http://stacko...

9e9bb40f93094055bd09193eb3bccbb8 Talk