Result.distance property

readonly distance: float

Returns the distance between the ray origin and hit point.