Inheritance Graph
graph BT
RayCaster
click RayCaster "classMinSG_1_1RayCasting_1_1RayCaster"
Description
Class to perform ray casting.
Public Types
Public Static Functions
Documentation
typedef
MinSG::RayCasting::RayCaster::intersection_t
Defined in MinSG/Ext/RayCasting/RayCaster.h:34
typedef
MinSG::RayCasting::RayCaster::intersection_packet_t
Defined in MinSG/Ext/RayCasting/RayCaster.h:35
typedef
MinSG::RayCasting::RayCaster::vec_t
Defined in MinSG/Ext/RayCasting/RayCaster.h:37
typedef
MinSG::RayCasting::RayCaster::ray_t
Defined in MinSG/Ext/RayCasting/RayCaster.h:38
function
MinSG::RayCasting::RayCaster::castRays
Cast a packet of rays against a scene and return the first objects that are hit together with the intersection distance.
Parameters
- scene
- Root node of the scene that will be used for casting
- rays
- Array of rays, given in the world coordinate system
Returns
Array of intersection results. Each result contains the first object that is hit by the ray, ornullptr
if no object is hit, as first entry. The intersection value for the point where an object is hit is stored in the second entry of the result.
Defined in MinSG/Ext/RayCasting/RayCaster.h:51
function
MinSG::RayCasting::RayCaster::castRays
Cast a packet of rays against a single object and check if the object is hit.
Parameters
- scene
- Root node of the scene that will be used for casting
- rays
- Array of rays, given in the world coordinate system
Returns
Array of intersection results. Each result contains the object if it is hit by the ray, ornullptr
if it is not hit, as first entry. The intersection value for the point where the object is hit is stored in the second entry of the result.
Defined in MinSG/Ext/RayCasting/RayCaster.h:65