Scalar -> vector not implicit in call or assign.

This commit is contained in:
Christoffer Lerno
2024-07-23 12:22:31 +02:00
parent 26ca8f7777
commit 379637f214
14 changed files with 159 additions and 93 deletions

View File

@@ -190,7 +190,7 @@ macro rotate_axis_angle(v, axis, angle) @private
var w = axis * math::sin(angle);
var wv = w.cross(v);
var wwv = w.cross(wv);
wv *= math::cos(angle) * 2;
wv *= math::cos(($typeof(v))angle) * 2;
wwv *= 2;
return v + wv + wwv;