乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
楼主: paulmcz

[编程交流] 测试多段线

[复制链接]

9

主题

167

帖子

163

银币

初来乍到

Rank: 1

铜币
43
发表于 2022-7-6 09:44:40 | 显示全部楼层
“陷阱”(如果有的话)是无意的。我只是说凸出值,收集的列表中的最后两个(凸出值)必须都为0。不是最后两条多段线线段。
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 09:47:17 | 显示全部楼层
 
我只是指这样一个事实,即检查偶数索引的凸出值是否为零并不意味着奇数索引的凸出值为非零,可能不是一个“陷阱”,但在处理逻辑表达式时肯定会忽略一些东西。
 
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 09:51:28 | 显示全部楼层
李,事实上事情是可以忽略的,我从自己的经历和测试中很好地理解。有时,我看不到非常明显或基本的东西,甚至对我来说。
 
现在伦敦是凌晨2点,不是吗?你睡觉吗?
回复

使用道具 举报

11

主题

968

帖子

919

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
99
发表于 2022-7-6 09:54:06 | 显示全部楼层
 
当你需要他的时候,他的化身在哪里!?哈哈(我的时间上午12:50)
 
别担心。。。他会回来的。
回复

使用道具 举报

9

主题

167

帖子

163

银币

初来乍到

Rank: 1

铜币
43
发表于 2022-7-6 09:57:21 | 显示全部楼层
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 10:02:16 | 显示全部楼层
I believe Irne has fallen for the 'trap' you noted in post #4 Paul, an XOR of the test for an even index value and straight line flag variable will still allow straight lines when the index is odd. :wink:
回复

使用道具 举报

9

主题

167

帖子

163

银币

初来乍到

Rank: 1

铜币
43
发表于 2022-7-6 10:04:28 | 显示全部楼层
The 'trap', if any, was unintentional. I was only talking about the bulge values and the last two in collected list (of bulge values) have to be both 0. Not the last two polyline segments.
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 10:06:47 | 显示全部楼层
 
I was just referring to the fact that checking whether the bulge value is zero for even indexes doesn't imply it is non-zero for odd indexes, maybe not a 'trap' but certainly something that could be overlooked when working with the logical expressions.
 
回复

使用道具 举报

9

主题

167

帖子

163

银币

初来乍到

Rank: 1

铜币
43
发表于 2022-7-6 10:08:57 | 显示全部楼层
Lee, the fact that things can be overlooked, I understand very well from my own experience and testings. Sometimes, I don't see things that are very obvious or elementary, even to me.
 
It is 2AM in London now, isn't it? Do you sleep at all?
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 10:12:38 | 显示全部楼层
 
Where's ReMark's avatar when you need him!? LoL (12:50 AM my time)
 
Don't worry... He'll be back.
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-7 05:11 , Processed in 0.439164 second(s), 70 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表