Exemplo n.º 1
0
            public bool IsInBothInfluenceZone(double currentTime, ITimelineState state)
            {
                float num  = state.TimeToPixel(currentTime);
                float num2 = state.TimeToPixel(this.time);

                return(num > num2 - MagnetEngine.k_MagnetInfluenceInPixels - MagnetEngine.k_Epsilon && num < num2 + MagnetEngine.k_MagnetInfluenceInPixels);
            }
Exemplo n.º 2
0
            public bool IsInInfluenceZone(double currentTime, ITimelineState state, AttractedEdge direction)
            {
                float num  = state.TimeToPixel(currentTime);
                float num2 = state.TimeToPixel(this.time);
                bool  result;

                if (direction == AttractedEdge.Left)
                {
                    result = (num > num2 - MagnetEngine.k_Epsilon && num < num2 + MagnetEngine.k_MagnetInfluenceInPixels);
                }
                else
                {
                    result = (num > num2 - MagnetEngine.k_MagnetInfluenceInPixels - MagnetEngine.k_Epsilon && num < num2);
                }
                return(result);
            }