public bool Intersects(volume range) { if (Max.X < range.Min.X || range.Max.X < Min.X) { return(false); } if (Max.Y < range.Min.Y || range.Max.Y < Min.Y) { return(false); } if (Max.Z < range.Min.Z || range.Max.Z < Min.Z) { return(false); } return(true); }
public void MergeSelf(volume range) { Min.ElementWiseMinSelf(range.Min); Max.ElementWiseMaxSelf(range.Max); }
public volume Merge(volume range) { return(new volume(vector.ElementWiseMin(Min, range.Min), vector.ElementWiseMax(Max, range.Max))); }
public bool Contains(volume range) { return(Min <= range.Min && range.Max <= Max); }