// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using UnityEngine; namespace Microsoft.MixedReality.Toolkit { /// /// Extension methods for Unity's Ray struct /// public static class RayExtensions { /// /// Determines whether or not a ray is valid. /// /// The ray being tested. /// True if the ray is valid, false otherwise. public static bool IsValid(this Ray ray) { return ray.direction != Vector3.zero; } } }