using UnityEngine.Scripting.APIUpdating;
using UnityEngine.XR.Interaction.Toolkit.Utilities;
namespace UnityEngine.XR.Interaction.Toolkit.Interactables
{
///
/// Struct used to get information back from a distance calculation between an object and a location.
///
///
///
///
[MovedFrom("UnityEngine.XR.Interaction.Toolkit")]
public struct DistanceInfo
{
///
/// The location on the object (in world space) where the distance was calculated from.
///
///
/// When used with the method ,
/// contains the 's position.
///
/// When used with the method , this property contains the point
/// on the closest to the location used for calculation.
///
public Vector3 point { get; set; }
///
/// The distance squared between and the location used for calculation.
///
public float distanceSqr { get; set; }
///
/// The collider associated with the .
/// Returns if the distance calculation doesn't involve colliders, or if there is no valid collider for calculation.
///
public Collider collider { get; set; }
}
}