INNER CODE UNIT · C
dist1
clover-moe/spearmint · code/botlib/be_aas_cluster.c:606
dist1 = DotProduct(normal1, aasworld.vertexes[edge1->v[0]]);
CrossProduct(edgevec2, plane->normal, normal2);
dist2 = DotProduct(normal2, aasworld.vertexes[edge2->v[0]]);
for (i = 0; i < 2; i++)
{
if (DotProduct(aasworld.vertexes[edge1->v[i]], normal2) - dist2 < -0.01) return qfalse;
} //end for
for (i = 0; i < 2; i++)
{
if (DotProduct(aasworld.vertexes[edge2->v[i]], normal1) - dist1 < -0.01) return qfalse;
} //end for
return qtrue;
} //end of the function AAS_NonConvexEdges
//===========================================================================
//
// Parameter: -
// Returns: -