C#Code
C#Code
Static Public Member Functions
Libraries._3D.Intersections.RayIntersection Class Reference

List of all members.

Static Public Member Functions

static bool CheckTriangleIntersectionLine (ref Microsoft.Xna.Framework.Ray ray, ref Microsoft.Xna.Framework.Vector3 v0, ref Microsoft.Xna.Framework.Vector3 v1, ref Microsoft.Xna.Framework.Vector3 v2, ref float dist)
static bool CheckTriangleIntersectionLine (ref Microsoft.Xna.Framework.Ray ray, ref Microsoft.Xna.Framework.Vector3 v0, ref Microsoft.Xna.Framework.Vector3 v1, ref Microsoft.Xna.Framework.Vector3 v2, ref float dist)

Detailed Description

Methods for checking intersections using a ray. The ray can also be used as a line.


Member Function Documentation

static bool Libraries._3D.Intersections.RayIntersection.CheckTriangleIntersectionLine ( ref Microsoft.Xna.Framework.Ray  ray,
ref Microsoft.Xna.Framework.Vector3  v0,
ref Microsoft.Xna.Framework.Vector3  v1,
ref Microsoft.Xna.Framework.Vector3  v2,
ref float  dist 
) [static]

Check if the given ray intersects with the given triangle. The ray is treated as a line, and anything on the line infinitly in both directions can be selected.

ray - Ray to use.
v0, v1, v2 - Points that make up the triangle.
dist - Distance along the ray the intersection was at. Value defaults to 0.

Return:
Value is true if the intersection ray collided with the triangle, false if not.
static bool Libraries._3D.Intersections.RayIntersection.CheckTriangleIntersectionLine ( ref Microsoft.Xna.Framework.Ray  ray,
ref Microsoft.Xna.Framework.Vector3  v0,
ref Microsoft.Xna.Framework.Vector3  v1,
ref Microsoft.Xna.Framework.Vector3  v2,
ref float  dist 
) [static]

Check if the given ray intersects with the given triangle. The ray is treated as a line, and anything on the line infinitly in both directions can be selected.

ray - Ray to use.
v0, v1, v2 - Points that make up the triangle.
dist - Distance along the ray the intersection was at. Value defaults to 0.

Return:
Value is true if the intersection ray collided with the triangle, false if not.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Enumerations Properties