diff options
author | Xavier Cho <mysticfallband@gmail.com> | 2018-04-08 12:43:11 +0900 |
---|---|---|
committer | Xavier Cho <mysticfallband@gmail.com> | 2018-04-17 07:39:37 +0900 |
commit | b765c051cb4e71b377fd5d653e77fc73d390c2b9 (patch) | |
tree | df3da66da1380f1279385004ccda294d7cb30ce7 /modules/mono/glue | |
parent | 9097c71255c6e8edb0014c043562caffc84ee2cf (diff) |
#18051: Use array initializer when applicable
Diffstat (limited to 'modules/mono/glue')
-rw-r--r-- | modules/mono/glue/cs_files/Basis.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/mono/glue/cs_files/Basis.cs b/modules/mono/glue/cs_files/Basis.cs index 9a4bd7b366..f0f1644d46 100644 --- a/modules/mono/glue/cs_files/Basis.cs +++ b/modules/mono/glue/cs_files/Basis.cs @@ -18,8 +18,7 @@ namespace Godot new Vector3(0f, 0f, 1f) ); - private static readonly Basis[] orthoBases = new Basis[24] - { + private static readonly Basis[] orthoBases = { new Basis(1f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 1f), new Basis(0f, -1f, 0f, 1f, 0f, 0f, 0f, 0f, 1f), new Basis(-1f, 0f, 0f, 0f, -1f, 0f, 0f, 0f, 1f), @@ -252,8 +251,7 @@ namespace Godot { var inv = this; - var co = new real_t[3] - { + real_t[] co = { inv[1, 1] * inv[2, 2] - inv[1, 2] * inv[2, 1], inv[1, 2] * inv[2, 0] - inv[1, 0] * inv[2, 2], inv[1, 0] * inv[2, 1] - inv[1, 1] * inv[2, 0] |