UnityEngine.Physics2D.LinecastNonAlloc C# (CSharp) Method

LinecastNonAlloc() private method

private LinecastNonAlloc ( Vector2 start, Vector2 end, RaycastHit2D results ) : int
start Vector2
end Vector2
results RaycastHit2D
return int
        public static int LinecastNonAlloc(Vector2 start, Vector2 end, RaycastHit2D[] results)
        {
            float positiveInfinity = float.PositiveInfinity;
            float negativeInfinity = float.NegativeInfinity;
            int layerMask = -5;
            return INTERNAL_CALL_LinecastNonAlloc(ref start, ref end, results, layerMask, negativeInfinity, positiveInfinity);
        }

Same methods

Physics2D::LinecastNonAlloc ( Vector2 start, Vector2 end, RaycastHit2D results, [ layerMask, [ minDepth, [ maxDepth ) : int
Physics2D::LinecastNonAlloc ( Vector2 start, Vector2 end, RaycastHit2D results, int layerMask ) : int
Physics2D::LinecastNonAlloc ( Vector2 start, Vector2 end, RaycastHit2D results, int layerMask, float minDepth ) : int
Physics2D