Exemple #1
0
 public bool Equals(Projection other)
 {
     return Start == other.Start && End == other.End;
 }
Exemple #2
0
 public bool Overlaps(Projection b, out float distance)
 {
     int order;
     return Overlaps(b, out distance, out order);
 }
Exemple #3
0
        public bool Overlaps(Projection b, out float distance, out int order)
        {
            var startDistance = Math.Abs(Start - b.End);
            var endDistance = Math.Abs(End - b.Start);

            if (startDistance < endDistance)
            {
                distance = startDistance;
                order = -1;
            }
            else
            {
                distance = endDistance;
                order = 1;
            }

            if (Start > b.End)
                return false;

            if (End < b.Start)
                return false;

            return true;
        }
Exemple #4
0
        public bool Overlaps(Projection b)
        {
            if (Start > b.End)
                return false;

            if (End < b.Start)
                return false;

            return true;
        }