c - 定向边界框与定向边界框相交测试(c/c++)

标签 c geometry intersection

我想要这个测试的优化实现。它不必完全符合这个原型。

bool OOBBIntersectOOBB(
  float center0[3],
  float halfExtents0[3], // or some other bounding description
  float rotation0[9],    // quaternion would also be fine
  float center1[3],
  float halfExtents1[3],
  float rotation1[9]);

最佳答案

您可以尝试使用this Gamasutra article中描述的方法

关于c - 定向边界框与定向边界框相交测试(c/c++),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/104496/

相关文章:

java - C# 中的 Rectangle2D .outcode 等效吗?

Java 8 Lambda - 两个列表的交集

c - 将慢速设备连接到 MCF5270 微 Controller

c - 如何找到程序的堆栈内存的起始和结束地址?

c - 从用户空间管理虚拟内存

python - 集合中的交集

algorithm - 如何解决共享同一中心的垂直椭圆系统?

c - 字符串存在,但未打印

java - Javafx中如何让球从物体上弹开?

algorithm - 根据一个点与其他三个点的已知差异确定一个点的坐标