Skip to content

Commit 0203164

Browse files
committed
Update
1 parent 7c3ae84 commit 0203164

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

CustomView/Advance/[7]Path_Play.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ P2: 从P2发出一条射线,发现图形与该射线相交边数为1,奇数
100100
P3: 从P3发出一条射线,发现图形与该射线相交边数为2,偶数,故P3点在图形外部。
101101
```
102102

103+
#### 非零环绕数规则
104+
105+
非零环绕数规则相对来说比较难以理解一点。
106+
107+
我们在之前的文章 [Path之基本操作](https://github.com/GcsSloop/AndroidNote/blob/master/CustomView/Advance/%5B5%5DPath_Basic.md) 中我们了解到,在给Path中添加图形时需要指定图形的添加方式,是用顺时针还是逆时针,另外我们不论是使用lineTo,quadTo,cubicTo还是其他连接线的方法,都是从一个点连接到另一个点,换言之,**Path的任何线段都是有方向性的**,这也是使用非零环绕数规则的基础。
108+
109+
103110

104111

105112

0 commit comments

Comments
 (0)