Home | History | Annotate | Download | only in referencerenderer

Lines Matching refs:crossProduct

154 	const deInt64 crossProduct = (u.x() * v.y() - u.y() * v.x());
155 return crossProduct < 0;
163 const deInt64 crossProduct = (u.x() * v.y() - u.y() * v.x());
164 return crossProduct > 0;
172 const deInt64 crossProduct = (u.x() * v.y() - u.y() * v.x());
173 return crossProduct == 0; // cross product == 0
246 const deInt64 crossProduct = (u.x() * v.y() - u.y() * v.x());
248 // crossProduct = |p| |l| sin(theta)
250 // => distanceFromLine = crossProduct / |l|
254 // => crossProduct^2 / |l|^2 > C^2
255 // => crossProduct^2 > |l|^2 * C^2
261 const bool crossProductOverflows = (crossProduct > floorSqrtMaxInt64 || crossProduct < -floorSqrtMaxInt64);
262 const deInt64 crossProductSquared = (crossProductOverflows) ? (0) : (crossProduct * crossProduct); // avoid overflow