After some sime I tried to return to this, using dependency on older version of dagon
I got errors in dlib
Not sure how to understadn this
Error: incompatible types for (box.pmax) - (box.center): both operands are of type Vector!(float, 3)
If both operands are the same time Vector!(float, 3)
I would think the subtractioon is defined in dlib ... why not ?
prokop@prokop-Lenovo-ideapad-Y700-15ISK:~/git_SW/_Dlang/dagon-demo$ dub
Performing "debug" build using /usr/bin/dmd for x86_64.
bindbc-loader 0.1.1: target for configuration "noBC" is up to date.
bindbc-soloud 0.1.0: target for configuration "library" is up to date.
bindbc-ft 0.1.0: target for configuration "library" is up to date.
bindbc-nuklear 0.1.0: target for configuration "dynamic" is up to date.
bindbc-opengl 0.4.0: target for configuration "dynamic" is up to date.
bindbc-sdl 0.4.1: target for configuration "dynamic" is up to date.
dlib 0.16.0: building configuration "library"...
../../../.dub/packages/dlib-0.16.0/dlib/dlib/coding/varint.d(42,22): Deprecation: returning this.buffer[0..this.size] escapes a reference to parameter this
../../../.dub/packages/dlib-0.16.0/dlib/dlib/coding/varint.d(42,22): perhaps annotate the parameter with return
../../../.dub/packages/dlib-0.16.0/dlib/dlib/filesystem/stdfs.d(432,13): Deprecation: opIn_r is deprecated. Use opBinaryRight(string op)(...) if (op == "in") instead.
../../../.dub/packages/dlib-0.16.0/dlib/dlib/filesystem/stdfs.d(550,36): Deprecation: returning this.str[0..cast(ulong)this.length] escapes a reference to parameter this
../../../.dub/packages/dlib-0.16.0/dlib/dlib/filesystem/stdfs.d(550,36): perhaps annotate the parameter with return
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/aabb.d(50,16): Error: incompatible types for (this.center) - (this.size): both operands are of type Vector!(float, 3)
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/aabb.d(51,16): Error: incompatible types for (this.center) + (this.size): both operands are of type Vector!(float, 3)
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/aabb.d(85,22): Error: incompatible types for (b.center) - (this.center): both operands are of type Vector!(float, 3)
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/aabb.d(103,26): Error: incompatible types for (sphere.center) - (xClosest): both operands are of type Vector!(float, 3)
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/aabb.d(111,27): Error: incompatible types for (xDiff) / (fDist): Vector!(float, 3) and float
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/aabb.d(181,19): Error: incompatible types for (box.pmax) + (box.pmin): both operands are of type Vector!(float, 3)
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/aabb.d(182,16): Error: incompatible types for (box.pmax) - (box.center): both operands are of type Vector!(float, 3)
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/intersection.d(62,23): Error: incompatible types for (sphere1.center) - (sphere2.center): both operands are of type Vector!(float, 3)
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/intersection.d(63,21): Error: incompatible types for (sphere2.center) + (res.normal.opBinary(sphere2.radius)): both operands are of type Vector!(float, 3)
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/intersection.d(75,32): Error: incompatible types for (sphere.center) - (plane.d): Vector!(float, 3) and float
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/intersection.d(81,21): Error: incompatible types for (sphere.center) - (res.normal.opBinary(sphere.radius)): both operands are of type Vector!(float, 3)
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/intersection.d(95,21): Error: incompatible types for (center) - (tri.v[cast(ulong)whichVert]): both operands are of type Vector!(float, 3)
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/intersection.d(103,24): Error: incompatible types for (center) - (result.normal.opBinary(radius)): both operands are of type Vector!(float, 3)
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/intersection.d(126,13): Deprecation: opMulAssign is deprecated. Use opOpAssign(string op)(...) if (op == "*") instead.
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/intersection.d(127,27): Error: incompatible types for (center) - (tri.v[cast(ulong)whichVert0]): both operands are of type Vector!(float, 3)
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/intersection.d(129,24): Error: incompatible types for (tri.v[cast(ulong)whichVert0]) + (dir.opBinary(dot)): both operands are of type Vector!(float, 3)
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/intersection.d(132,25): Error: incompatible types for (center) - (project): both operands are of type Vector!(float, 3)
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/intersection.d(140,28): Error: incompatible types for (center) - (result.normal.opBinary(radius)): both operands are of type Vector!(float, 3)
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/intersection.d(165,25): Error: incompatible types for (sphere.center) - (tri.normal.opBinary(distFromPlane)): both operands are of type Vector!(float, 3)
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/intersection.d(172,24): Error: incompatible types for (sphere.center) - (tri.normal.opBinary(factor).opBinary(sphere.radius)): both operands are of type Vector!(float, 3)
../../../.dub/packages/dlib-0.16.0/dlib/dlib/geometry/intersection.d(213,31): Error: incompatible types for (s.center) - (translation(b.transform)): both operands are of type Vector!(float, 3)
/usr/bin/dmd failed with exit code 1.