¡@

Home 

c++ Programming Glossary: dist_squared

Cube sphere intersection test?

http://stackoverflow.com/questions/4578967/cube-sphere-intersection-test

vec3 C1 vec3 C2 vec3 S float R float dist_squared R R assume C1 and C2 are element wise sorted if not do that.. C2 are element wise sorted if not do that now if S.X C1.X dist_squared squared S.X C1.X else if S.X C2.X dist_squared squared S.X C2.X.. if S.X C1.X dist_squared squared S.X C1.X else if S.X C2.X dist_squared squared S.X C2.X if S.Y C1.Y dist_squared squared S.Y C1.Y else..