Commit 028283ff authored by Jan Möbius's avatar Jan Möbius
Browse files

Documentation improved

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15203 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b15ffec5
......@@ -134,14 +134,16 @@ perpendicular( const VectorT<Scalar,3>& _v );
/** \brief Intersect a ray and a triangle.
*
* Computes the intersection point between a ray and a triangle.
* Computes the intersection point between a ray and a triangle. The orientation of the triangle
* does not matter. The distance returned in t will be negative if the triangle is not in the
* direction given but in the opposite direction.
*
* @param _o origin of the ray
* @param _dir direction vector of the ray
* @param _v0 first point of the triangle
* @param _v1 second point of the triangle
* @param _v2 third point of the triangle
* @param _t returned distance from the origin to the intersection, in units of _dir
* @param _t returned distance from the origin to the intersection, in units of _dir ( negative if before origin!)
* @param _u returned first barycentric coordinate of the intersection point in the triangle
* @param _v returned second barycentric coordinate of the intersection point in the triangle
* @return true if an intersection was found
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment