Esempio n. 1
0
 public void GetInverse(out Mat3 result)
 {
     result = this;
     result.Inverse();
 }
Esempio n. 2
0
 public static Mat3 Negate(Mat3 m)
 {
     Negate(ref m, out Mat3 mat);
     return(mat);
 }
Esempio n. 3
0
 static Mat3()
 {
     Zero     = new Mat3(0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f);
     Identity = new Mat3(1f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 1f);
 }
Esempio n. 4
0
 public static Vec3 Multiply(Vec3 v, Mat3 m)
 {
     Multiply(ref m, ref v, out Vec3 vec);
     return(vec);
 }
Esempio n. 5
0
 public static Mat3 Multiply(Mat3 v1, Mat3 v2)
 {
     Multiply(ref v1, ref v2, out Mat3 mat);
     return(mat);
 }
Esempio n. 6
0
 public static Mat3 Multiply(float s, Mat3 m)
 {
     Multiply(ref m, s, out Mat3 mat);
     return(mat);
 }
Esempio n. 7
0
 public static Mat3 Subtract(Mat3 v1, Mat3 v2)
 {
     Subtract(ref v1, ref v2, out Mat3 mat);
     return(mat);
 }
Esempio n. 8
0
 public static Mat3 Add(Mat3 v1, Mat3 v2)
 {
     Add(ref v1, ref v2, out Mat3 mat);
     return(mat);
 }
Esempio n. 9
0
 public Mat3(Mat3 source)
 {
     Rt = source.Rt;
     RU = source.RU;
     Ru = source.Ru;
 }
Esempio n. 10
0
 public static void Multiply(ref Mat3 m, ref Vec3 v, out Vec3 result)
 {
     result.x = ((m.Rt.x * v.x) + (m.RU.x * v.y)) + (m.Ru.x * v.z);
     result.y = ((m.Rt.y * v.x) + (m.RU.y * v.y)) + (m.Ru.y * v.z);
     result.z = ((m.Rt.z * v.x) + (m.RU.z * v.y)) + (m.Ru.z * v.z);
 }