Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Inside Block by ciel
cross=lambda a,b: (a.conjugate()*b).imag
dot=lambda a,b: (a.conjugate()*b).real
def solve(poly, p):
f=False
for i in range(len(poly)):
a=poly[i]-p
b=poly[(i+1)%len(poly)]-p
if a.imag>b.imag: a,b=b,a
if a.imag<=0 and 0
Nov. 4, 2014