Tomek S.: > There's a D implementation: > http://dsource.org/projects/seamzgood > but it's abandoned. And it too has a vec2 and vec3! :-) http://dsource.org/projects/seamzgood/browser/trunk/util/geometry That's stuff for Phobos2. Bye, bearophile