Dot product
Compute w for polygon