Click or drag to resize
Ab4d.SharpEngine logo

IRayHitTestedObject Interface

IRayHitTestedObject interface can be implemented by a objects that supports hit testing.

Namespace: Ab4d.SharpEngine.Common
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public interface IRayHitTestedObject

The IRayHitTestedObject type exposes the following members.

Methods
 NameDescription
Public methodGetClosestHitResult GetClosestHitResult method returns a RayHitTestResult with the closest triangle hit by the specified ray. When no triangle is hit, null is returned.
Public methodGetNextHitResult GetNextHitResult method continues hit testing from the previously returned hit test and returns a RayHitTestResult with the next hit triangle (not necessary the next closest triangle) or null if no other triangle is hit. This method can be used to get all hit results.
Top
See Also