Exemplo n.º 1
0
 public static Extents FromPoints(IEnumerable <Vector> pts)
 {
     return(Extents.FromPoints(pts.ToArray()));
 }
Exemplo 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)));
        }
Exemplo n.º 3
0
 public bool IsExtentsIn(Extents e)
 {
     return(e.IsIn(this));
 }
Exemplo 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);
 }
Exemplo n.º 5
0
 public Extents GetExtents()
 {
     return(Extents.FromPoints(Points));
 }