摘要:
通过叉乘的方法实现,下面是ogre中的实现代码,只给出2维的函数,三维是同样的道理:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//判断一个点是否在一个2维三角形内,通过叉乘的方法来实现boolMath::pointInTri2D(constV... 阅读全文
摘要:
通过叉乘的方法实现,下面是ogre中的实现代码,只给出2维的函数,三维是同样的道理:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//判断一个点是否在一个2维三角形内,通过叉乘的方法来实现boolMath::pointInTri2D(constV... 阅读全文
|