February 06, 2016 "Error: need 'this' for 'bbox' of type 'Bong!(double, 3u)'" | ||||
---|---|---|---|---|
| ||||
I'm getting that on the last line of this code: auto wh = Vec2([loadSurf.w, loadSurf.h]); wh /= 2; auto x = wh.plus1Dim(pos[Z]); this.bbox = Box3(pos - x, pos + x); Any ideas? |
February 06, 2016 Re: "Error: need 'this' for 'bbox' of type 'Bong!(double, 3u)'" | ||||
---|---|---|---|---|
| ||||
Posted in reply to Enjoys Math | On Saturday, 6 February 2016 at 04:41:26 UTC, Enjoys Math wrote:
> I'm getting that on the last line of this code:
>
> auto wh = Vec2([loadSurf.w, loadSurf.h]);
> wh /= 2;
> auto x = wh.plus1Dim(pos[Z]);
> this.bbox = Box3(pos - x, pos + x);
>
> Any ideas?
Found it, this was occuring in a static function.
|
Copyright © 1999-2021 by the D Language Foundation