Click or drag to resize
Ab4d.SharpEngine logo

HitTester Class

HitTester is a class that can be used do a hit testing on a mesh data with vertex and index buffer. The static methods in this class take a Ray, various types of vertex buffers, index buffer and a few flags and returns a hit test result.
Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.UtilitiesHitTester

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public static class HitTester

The HitTester type exposes the following members.

Methods
 NameDescription
Public methodStatic memberHasTriangleSameOrientation Returns true when the triangle specified with 3 positions (its normal) and a ray with specified rayDirection are facing in the same direction.
Public methodStatic memberHitTest(Ray, PositionNormalTextureVertex, Int32, Boolean, Int32, Boolean) Hit test a ray against the mesh with specified vertex and index buffer.
Public methodStatic memberHitTest(Ray, Vector3, Int32, Boolean, Int32, Boolean) Hit test a ray against the mesh with specified vertex and index buffer.
Top
See Also