fBaseXtensions.Cache.Internal.Objects.CacheObject.IsPositionWithinRange C# (CSharp) Method

IsPositionWithinRange() public method

Check if the distance between the object and vector is less than range. (Factors the radius of object too)
public IsPositionWithinRange ( System.Vector3 V, float Range ) : bool
V System.Vector3
Range float
return bool
        public bool IsPositionWithinRange(Vector3 V, float Range)
        {
            return Math.Max(0f, Position.Distance(V) - Radius) <= Range;
        }