Пример #1
0
 public Matrix1D Multiply(Matrix1D mat)
 {
     return(new Matrix1D(
                X1 * mat.X + Y1 * mat.Y + Z1 * mat.Z + R1 * mat.R,
                X2 * mat.X + Y2 * mat.Y + Z2 * mat.Z + R2 * mat.R,
                X3 * mat.X + Y3 * mat.Y + Z3 * mat.Z + R3 * mat.R,
                X4 * mat.X + Y4 * mat.Y + Z4 * mat.Z + R4 * mat.R
                ));
 }
Пример #2
0
 public static Vertex From(Matrix1D mat)
 {
     return(new Vertex(mat.X, mat.Y, mat.Z));
 }