• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqtwindows誰得cocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Mercury Geometry and Math Library


Commit MetaInfo

Revision74202dd1b585b9e37d6c5037e5ce81b5133b92c8 (tree)
Zeit2022-01-24 09:27:17
AutorAlaskanEmily <emily@alas...>
CommiterAlaskanEmily

Log Message

Fix vector.normalize

Ändern Zusammenfassung

Diff

--- a/vector.m
+++ b/vector.m
@@ -104,7 +104,7 @@ near(Epsilon, V1, V2) :- magnitude_squared(sub(V1, V2)) =< (Epsilon * Epsilon).
104104
105105 %------------------------------------------------------------------------------%
106106
107-normalize(Vec) = scale(Vec, magnitude(Vec)).
107+normalize(Vec) = scale(Vec, 1.0 / magnitude(Vec)).
108108
109109 %------------------------------------------------------------------------------%
110110