"Error: need 'this' for 'bbox' of type 'Bong!(double, 3u)'"

Enjoys Math via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Feb 5 20:41:26 PST 2016


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?


More information about the Digitalmars-d-learn mailing list