|
发表于 2014-5-30 17:42:41
|
显示全部楼层
刚才看了下源码,这么明白的注释,还需要问问?
/// Constructor
/** This constructor initializes the internal values directly without any checking or manipulation.
* @param norm The normal of the plane.
* @param d The negative distance from the point of origin to the plane.
* @remark You may call osg:lane::MakeUnitLength afterwards if the passed normal was not normalized. */
inline Plane(const Vec3_type& norm,value_type d) { set(norm,d); }
/// Constructor
/** This constructor calculates from the three points describing an infinite plane the internal values.
* @param v1 Point in the plane.
* @param v2 Point in the plane.
* @param v3 Point in the plane.
* @remark After this constructor call the plane's normal is normalized in case the three points described a mathematically
* valid plane.
* @remark The normal is determined by building the cross product of (v2-v1) ^ (v3-v2). */
inline Plane(const Vec3_type& v1, const Vec3_type& v2, const Vec3_type& v3) { set(v1,v2,v3); }
/// Constructor
/** This constructor initializes the internal values directly without any checking or manipulation.
* @param norm The normal of the plane.
* @param point A point of the plane.
* @remark You may call osg::Plane::MakeUnitLength afterwards if the passed normal was not normalized. */
inline Plane(const Vec3_type& norm, const Vec3_type& point) { set(norm,point); } |
|