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
GLFigureBaseFigure hitted.
primitive
GLPrimitiveBaseFigure primitive hitted.
hitCoord
Vector3Hit coord [object].
distance
floatDistance 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
Figure
Figure hitted.
public GLFigureBase Figure { get; }
Property Value
HitCoord
Hit coord [object].
public Vector3 HitCoord { get; }
Property Value
Primitive
Figure primitive hitted.
public GLPrimitiveBase Primitive { get; }