Search found 1 match
- 06 Sep 2021, 14:37
- Forum: CAD .NET
- Topic: Initializing the Z-axis value to zero
- Replies: 3
- Views: 4145
Re: Initializing the Z-axis value to zero
Hello, You may zero-initialize DRect.z1 and DRect.z2 for the bounding boxes you are checking and then call a DRect.Contains method on the modified DRect objects: public bool IsContains2D(DRect box1, DRect box2) { box1.z1 = 0; box1.z2 = 0; box2.z1 = 0; box2.z2 = 0; return box1.Contains(box2); } Mikh...