Isis 3 Programmer Reference
Isis::RayHitInformation Struct Reference

Container that holds the body fixed intersection point and unit surface normal for a hit. More...

#include <EmbreeTargetShape.h>

Collaboration diagram for Isis::RayHitInformation:
Collaboration graph

Public Member Functions

 RayHitInformation ()
 Default constructor for RayHitInformation. More...
 
 RayHitInformation (LinearAlgebra::Vector &location, LinearAlgebra::Vector &normal, int primID)
 Constructor for RayHitInformation given an intersection and unit surface normal. More...
 

Public Attributes

LinearAlgebra::Vector intersection
 The (x, y, z) intersection location. More...
 
LinearAlgebra::Vector surfaceNormal
 The unit surface normal vector at the intersection. More...
 
int primID
 The primitive ID of the hit. More...
 

Detailed Description

Container that holds the body fixed intersection point and unit surface normal for a hit.

Author
2017-05-11 Jesse Mapel
History:
2017-05-11 Jesse Mapel - Original Version

Definition at line 134 of file EmbreeTargetShape.h.

Constructor & Destructor Documentation

◆ RayHitInformation() [1/2]

Isis::RayHitInformation::RayHitInformation ( )

Default constructor for RayHitInformation.

Definition at line 213 of file EmbreeTargetShape.cpp.

References intersection, primID, surfaceNormal, and Isis::LinearAlgebra::vector().

◆ RayHitInformation() [2/2]

Isis::RayHitInformation::RayHitInformation ( LinearAlgebra::Vector location,
LinearAlgebra::Vector normal,
int  prim 
)

Constructor for RayHitInformation given an intersection and unit surface normal.

Parameters
locationThe body-fixed (x, y, z) location of the intersection in kilometers.
normalThe unit surface normal vector in body-fixed (x, y, z).
primIDThe primitive ID

Definition at line 228 of file EmbreeTargetShape.cpp.

Member Data Documentation

◆ intersection

◆ primID

int Isis::RayHitInformation::primID

The primitive ID of the hit.

Definition at line 140 of file EmbreeTargetShape.h.

Referenced by RayHitInformation().

◆ surfaceNormal

LinearAlgebra::Vector Isis::RayHitInformation::surfaceNormal

The unit surface normal vector at the intersection.

Definition at line 139 of file EmbreeTargetShape.h.

Referenced by RayHitInformation(), and Isis::EmbreeShapeModel::updateIntersection().


The documentation for this struct was generated from the following files: