(v Vector)
| 13 | var ClipBox = Box{Vector{-1, -1, -1}, Vector{1, 1, 1}} |
| 14 | |
| 15 | func (f *ClipFilter) Filter(v Vector) (Vector, bool) { |
| 16 | w := f.Matrix.MulPositionW(v) |
| 17 | if !f.Scene.Visible(f.Eye, v) { |
| 18 | return w, false |
| 19 | } |
| 20 | if !ClipBox.Contains(w) { |
| 21 | return w, false |
| 22 | } |
| 23 | return w, true |
| 24 | } |
nothing calls this directly
no test coverage detected