Function: rayPointDistance()
function rayPointDistance(ray: RayTuple, point: Vec3Tuple): {
distance: number;
t: number;
};
Defined in: webxr-interactions/src/math.ts:194
Closest-approach distance from a ray to a point, and the along-ray t.
Parameters
| Parameter | Type |
|---|---|
ray | RayTuple |
point | Vec3Tuple |
Returns
{
distance: number;
t: number;
}
| Name | Type | Defined in |
|---|---|---|
distance | number | webxr-interactions/src/math.ts:194 |
t | number | webxr-interactions/src/math.ts:194 |