Lines Matching defs:other

140 bool GrTriangulator::Line::intersect(const Line& other, SkPoint* point) const {
141 double denom = fA * other.fB - fB * other.fA;
146 point->fX = double_to_clamped_scalar((fB * other.fC - other.fB * fC) * scale);
147 point->fY = double_to_clamped_scalar((other.fA * fC - fA * other.fC) * scale);
250 bool GrTriangulator::Edge::intersect(const Edge& other, SkPoint* p, uint8_t* alpha) const {
252 fTop->fID, fBottom->fID, other.fTop->fID, other.fBottom->fID);
253 if (fTop == other.fTop || fBottom == other.fBottom ||
254 fTop == other.fBottom || fBottom == other.fTop) {
263 other.fLine, other.fTop->fPoint, other.fBottom->fPoint,
270 if (fType == EdgeType::kInner || other.fType == EdgeType::kInner) {
274 } else if (fType == EdgeType::kOuter && other.fType == EdgeType::kOuter) {
281 SkASSERT(fType == EdgeType::kConnector || other.fType == EdgeType::kConnector);
283 (1.0 - t) * other.fTop->fAlpha + t * other.fBottom->fAlpha);
802 void GrTriangulator::mergeEdgesAbove(Edge* edge, Edge* other, EdgeList* activeEdges,
804 if (coincident(edge->fTop->fPoint, other->fTop->fPoint)) {
809 other->fWinding += edge->fWinding;
812 } else if (c.sweep_lt(edge->fTop->fPoint, other->fTop->fPoint)) {
814 other->fWinding += edge->fWinding;
815 this->setBottom(edge, other->fTop, activeEdges, current, c);
817 rewind(activeEdges, current, other->fTop, c);
818 edge->fWinding += other->fWinding;
819 this->setBottom(other, edge->fTop, activeEdges, current, c);
823 void GrTriangulator::mergeEdgesBelow(Edge* edge, Edge* other, EdgeList* activeEdges,
825 if (coincident(edge->fBottom->fPoint, other->fBottom->fPoint)) {
830 other->fWinding += edge->fWinding;
833 } else if (c.sweep_lt(edge->fBottom->fPoint, other->fBottom->fPoint)) {
834 rewind(activeEdges, current, other->fTop, c);
835 edge->fWinding += other->fWinding;
836 this->setTop(other, edge->fBottom, activeEdges, current, c);
839 other->fWinding += edge->fWinding;
840 this->setTop(edge, other->fBottom, activeEdges, current, c);