Commit b70574512cfd3a630e48389829507c74421f8a16
1 parent
b90b3089
Fixed compatibility issues with aabbn low-dimemsional constructors
Showing
1 changed file
with
8 additions
and
2 deletions
Show diff stats
stim/visualization/aabbn.h
... | ... | @@ -30,12 +30,18 @@ struct aabbn{ |
30 | 30 | high[0] = x1; |
31 | 31 | } |
32 | 32 | |
33 | - CUDA_CALLABLE aabbn(T x0, T y0, T x1, T y1) : aabbn(x0, x1) { | |
33 | + CUDA_CALLABLE aabbn(T x0, T y0, T x1, T y1) { | |
34 | + low[0] = x0; | |
35 | + high[0] = x1; | |
34 | 36 | low[1] = y0; |
35 | 37 | high[1] = y1; |
36 | 38 | } |
37 | 39 | |
38 | - CUDA_CALLABLE aabbn(T x0, T y0, T z0, T x1, T y1, T z1) : aabbn(x0, y0, x1, y1) { | |
40 | + CUDA_CALLABLE aabbn(T x0, T y0, T z0, T x1, T y1, T z1) { | |
41 | + low[0] = x0; | |
42 | + high[0] = x1; | |
43 | + low[1] = y0; | |
44 | + high[1] = y1; | |
39 | 45 | low[2] = z0; |
40 | 46 | high[2] = z1; |
41 | 47 | } | ... | ... |