摘要: 资料参考 https://www.scratchapixel.com/lessons/3d-basic-rendering/rasterization-practical-implementation/rasterization-stage 题外话 scratchapixel的文章都很不错,缺点是稍 阅读全文
posted @ 2020-07-02 18:25 jeoyao 阅读(449) 评论(0) 推荐(1) 编辑
摘要: stackexchange参考文章 https://math.stackexchange.com/questions/311921/get-location-of-vector-circle-intersection 下面来复习一下 假设圆的中心为(h,k),半径为r,那么圆的方程式如下: \((x 阅读全文
posted @ 2020-07-02 16:12 jeoyao 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 原文参考: https://yal.cc/rectangle-circle-intersection-test/ 本文是关于圆-矩形如何进行碰撞检测。由于某些原因,这似乎一直被认为是一个复杂的事情,但其实不是。 先说重要的,你很有可能已经掌握了如何检测圆和点之间的碰撞检测-只需要检测点和圆之间的距离 阅读全文
posted @ 2020-07-02 12:07 jeoyao 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 原文链接 https://gamedevelopment.tutsplus.com/tutorials/understanding-goal-based-vector-field-pathfinding--gamedev-9007 专业术语 tile 我认为最好的翻译是区块,一般都翻译成瓦片,实际上 阅读全文
posted @ 2020-06-29 12:06 jeoyao 阅读(641) 评论(0) 推荐(1) 编辑
摘要: 配置端口号开放 # firewall-cmd --zone=public --add-port=端口号/tcp --permanent success 查看已经开放的端口: firewall-cmd --list-ports 重新载入配置 firewall-cmd --reload 停止防火墙 sy 阅读全文
posted @ 2020-05-29 16:12 jeoyao 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 安装 yum -y install vsftpd 配置 用vim打开vsftpd.conf,命令如下,在vim中按i,进入输入模式 vim /etc/vsftpd/vsftpd.conf 1.禁止匿名登录 anonymous_enable=NO 2.允许本机用户登录 local_enable=YES 阅读全文
posted @ 2020-05-29 16:10 jeoyao 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 定制协议 TCP是基于二进制数据流的,因此发送数据时,需要告诉接受方,消息之间应该如何分割。 一个消息是我们定义好的协议的实例,比如登录消息,消息内含有用户名和密码字段。假设现在有2个10K长度的消息,TCP会根据网络情况,分多次接受到数据,可能是5K+6K+9K收完,也可能是一次收到20K,也可能 阅读全文
posted @ 2020-05-29 16:08 jeoyao 阅读(310) 评论(0) 推荐(0) 编辑