本文整理汇总了C++中SkOpAngle::after方法的典型用法代码示例。如果您正苦于以下问题:C++ SkOpAngle::after方法的具体用法?C++ SkOpAngle::after怎么用?C++ SkOpAngle::after使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SkOpAngle
的用法示例。
在下文中一共展示了SkOpAngle::after方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: merge
bool SkOpAngle::merge(SkOpAngle* angle) {
SkASSERT(fNext);
SkASSERT(angle->fNext);
SkOpAngle* working = angle;
do {
if (this == working) {
return false;
}
working = working->fNext;
} while (working != angle);
do {
SkOpAngle* next = working->fNext;
working->fNext = NULL;
insert(working);
working = next;
} while (working != angle);
// it's likely that a pair of the angles are unorderable
#if DEBUG_ANGLE
SkOpAngle* last = angle;
working = angle->fNext;
do {
SkASSERT(last->fNext == working);
last->fNext = working->fNext;
SkASSERT(working->after(last));
last->fNext = working;
last = working;
working = working->fNext;
} while (last != angle);
#endif
debugValidateNext();
return true;
}
示例2: After
static int After(SkOpAngle& lh, SkOpAngle& rh) {
return lh.after(&rh);
}
示例3: After
static int After(const SkOpAngle& lh, const SkOpAngle& rh) {
return lh.after(&rh);
}