6 template <
typename numeric_type =
double>
Cast rays to determine if and where they intersect geometry.
bool DidIntersect(int mesh_id)
A simple hit struct to carry all relevant information about hits.
bool DidHit() const
Determine whether or not this hitstruct contains a hit.
numeric_type distance
Distance from the origin point to the hit point. Set to -1 if no hit was recorded.
int meshid
The ID of the hit mesh. Set to -1 if no hit was recorded.
HitStruct(numeric_type in_distance, int in_meshid)