Table of Contents

Class RayCastHitTest

Namespace
SearchAThing.OpenGL.Core
Assembly
netcore-opengl-core.dll

Hold raycast hit test info.
Intersect(Line, float, GLFigureBase)

public class RayCastHitTest
Inheritance
RayCastHitTest
Inherited Members

Constructors

RayCastHitTest(GLFigureBase, GLPrimitiveBase, Vector3, float)

Create ray cast hit test nfo object.

public RayCastHitTest(GLFigureBase figure, GLPrimitiveBase primitive, Vector3 hitCoord, float distance)

Parameters

figure GLFigureBase

Figure hitted.

primitive GLPrimitiveBase

Figure primitive hitted.

hitCoord Vector3

Hit coord [object].

distance float

Distance of the ray from hitted primitive.

Properties

Distance

Distance of the ray from hitted primitive.
For point and line entity this is the distance of the ray projection to entity.
for triangle entity this value is 0.

public float Distance { get; }

Property Value

float

Figure

Figure hitted.

public GLFigureBase Figure { get; }

Property Value

GLFigureBase

HitCoord

Hit coord [object].

public Vector3 HitCoord { get; }

Property Value

Vector3

Primitive

Figure primitive hitted.

public GLPrimitiveBase Primitive { get; }

Property Value

GLPrimitiveBase