public bool Equals(Projection other) { return Start == other.Start && End == other.End; }
public bool Overlaps(Projection b, out float distance) { int order; return Overlaps(b, out distance, out order); }
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; }
public bool Overlaps(Projection b) { if (Start > b.End) return false; if (End < b.Start) return false; return true; }