8 lines
137 B
C++
8 lines
137 B
C++
![]() |
#pragma once
|
||
|
|
||
|
struct ray {
|
||
|
Vector3 origin, direction;
|
||
|
float t = 0.0f;
|
||
|
};
|
||
|
|
||
|
float closest_distance_between_lines(ray& l1, ray& l2);
|