Click or drag to resize
Ab4d.SharpEngine logo

MeshOctreeHitTest Method

HitTest method executes a ray hit test on this octree and returns a RayHitTestResult with the closest triangle in this octree that is hit by the specified ray. If not triangle is hit, null is returned. To get all hit results call method.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public RayHitTestResult? HitTest(
	ref Ray ray,
	HitTestContext hitTestContext
)

Parameters

ray  Ray
ray
hitTestContext  HitTestContext
HitTestContext

Return Value

RayHitTestResult
RayHitTestResult in case of a hit or null of no triangle is hit
See Also