summon.vector
index
/home/raz/projects/summon/lib/summon/vector.py

 
Functions
       
in_left_halfspace2(a, b, p)
Returns True is point p is to the left of line a<->b.
where left is defined as standing at a and facing towards b
in_polygon2(pts, pos)
Returns True if point 'pos' in convex polygon with points 'pts'
in_triangle2(a, b, c, pos)
Returns True is pos in triangle a,b,c
sqrt(...)
sqrt(x)
 
Return the square root of x.
vadd(u, v)
vadds(u, s)
vdist(u, v)
vdiv(u, v)
vdivs(u, s)
vdot(u, v)
vidiv(u, v)
vidivs(u, s)
vmag(v)
vmul(u, v)
vmuls(u, s)
vproj(u, v)
vsub(u, v)
vsubs(u, s)