摘要: 资料参考 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) 编辑