Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/system numerics to unityengine #1531

Merged
merged 2 commits into from Feb 22, 2022

Conversation

ousttrue
Copy link
Contributor

vrmlib の数学ライブラリを System.Numerics から UnityEngine に入れ替え。
[1.0] の右手左手変換や、正規化で使われます。

Assert.AreEqual(3, um.m23);
Assert.AreEqual(new UnityEngine.Vector4(1, 2, 3, 1), um.GetColumn(3));
Assert.AreEqual(new float[] { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 2, 3, 1 }, values);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

メモリレイアウト確認!

@ousttrue
Copy link
Contributor Author

#1442
読めるが壊れるになった。

Copy link
Contributor

@Santarh Santarh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

テストに通ってるならよさそう。
Unity 非依存ライブラリの夢はそれはそれでまた別の形で……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants