Esempio n. 1
0
 public static Extents FromPoints(IEnumerable <Vector> pts)
 {
     return(Extents.FromPoints(pts.ToArray()));
 }
Esempio n. 2
0
        public bool IsCross(Extents e)
        {
            var union = this.Add(e);

            return(new[] { 0, 1, 2 }.All(i => union.Range(i) <= this.Range(i) + e.Range(i)));
        }
Esempio n. 3
0
 public bool IsExtentsIn(Extents e)
 {
     return(e.IsIn(this));
 }
Esempio n. 4
0
 public bool IsIn(Extents e)
 {
     return(this.Min.Value.X >= e.Min.Value.X && this.Max.Value.X <= e.Max.Value.X &&
            this.Min.Value.Y >= e.Min.Value.Y && this.Max.Value.Y <= e.Max.Value.Y &&
            this.Min.Value.Z >= e.Min.Value.Z && this.Max.Value.Z <= e.Max.Value.Z);
 }
 public Extents GetExtents()
 {
     return(Extents.FromPoints(Points));
 }