2010年8月5日

判断点是否在三角形内

摘要: 本文只是翻译和整理,原文在此http://www.blackpawn.com/texts/pointinpoly/default.html概述给定三角形ABC和一点P(x,y,z),判断点P是否在ABC内。这是游戏设计中一个常见的问题。需要注意的是,这里假定点和三角形位于同一个平面内。本文介绍三种不... 阅读全文

posted @ 2010-08-05 17:54 前端风云志 阅读(122330) 评论(77) 推荐(26)

C++中的explicit关键字

摘要: 先看一下MSDN上关于explicit关键字的解释This keyword is a declaration specifier that can only be applied to in-class constructor declarations. An explicit constructor cannot take part in implicit conversions. It can only be used to explicitly construct an object.1 该关键字只能用来修饰类内部的构造函数class A{public: explicit A(in... 阅读全文

posted @ 2010-08-05 08:35 前端风云志 阅读(2593) 评论(2) 推荐(3)

导航

关注我

前端风云志