Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Using length replaced by magnitude.
Browse files Browse the repository at this point in the history
  • Loading branch information
drug007 committed Aug 14, 2018
1 parent 2ca12f8 commit a912300
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions math/gfm/math/vector.d
Original file line number Diff line number Diff line change
Expand Up @@ -673,9 +673,9 @@ private
auto dp = dot(aN, bN);

if (dp < 0)
return PI - 2 * asin((-bN-aN).length / 2);
return PI - 2 * asin((-bN-aN).magnitude / 2);
else
return 2 * asin((bN-aN).length / 2);
return 2 * asin((bN-aN).magnitude / 2);
}

static assert(vec2f.sizeof == 8);
Expand Down

0 comments on commit a912300

Please sign in to comment.