digitalmars.D.learn - "Error: need 'this' for 'bbox' of type 'Bong!(double, 3u)'"
- Enjoys Math (6/6) Feb 05 2016 I'm getting that on the last line of this code:
- Enjoys Math (2/8) Feb 05 2016 Found it, this was occuring in a static function.
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?
Feb 05 2016
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.
Feb 05 2016