blank lines
This commit is contained in:
parent
f46f7af292
commit
a3646ca385
1 changed files with 2 additions and 0 deletions
|
@ -155,6 +155,7 @@ func (p *Prism) DrawAfter(x Drawer) bool {
|
||||||
return p.pos.Y < x.pos.Y
|
return p.pos.Y < x.pos.Y
|
||||||
}
|
}
|
||||||
return p.pos.Z > x.pos.Z
|
return p.pos.Z > x.pos.Z
|
||||||
|
|
||||||
case BoundingBoxer:
|
case BoundingBoxer:
|
||||||
xb := x.BoundingBox()
|
xb := x.BoundingBox()
|
||||||
if pb.Max.Z <= xb.Min.Z { // p is behind x
|
if pb.Max.Z <= xb.Min.Z { // p is behind x
|
||||||
|
@ -198,6 +199,7 @@ func (p *Prism) DrawBefore(x Drawer) bool {
|
||||||
return p.pos.Y > x.pos.Y
|
return p.pos.Y > x.pos.Y
|
||||||
}
|
}
|
||||||
return p.pos.Z < x.pos.Z
|
return p.pos.Z < x.pos.Z
|
||||||
|
|
||||||
case BoundingBoxer:
|
case BoundingBoxer:
|
||||||
xb := x.BoundingBox()
|
xb := x.BoundingBox()
|
||||||
if pb.Min.Z >= xb.Max.Z { // p is in front of x
|
if pb.Min.Z >= xb.Max.Z { // p is in front of x
|
||||||
|
|
Loading…
Reference in a new issue