Home | History | Annotate | Download | only in test

Lines Matching refs:Matrix

20 #include "Matrix.h"
35 Matrix m1;
36 Matrix m2;
42 Matrix* clone = new Matrix(m1);
49 // Create an identity matrix.
50 Matrix m;
57 checkValues(m.mData, expected, Matrix::MATRIX_SIZE);
61 // Create a matrix.
62 Matrix m1;
64 float data[Matrix::MATRIX_SIZE];
67 for (int i = 0; i < Matrix::MATRIX_SIZE; i++) {
72 // Create another matrix
73 Matrix m2;
75 // Load second matrix with first
79 checkValues(m2.mData, data, Matrix::MATRIX_SIZE);
83 Matrix m1;
85 Matrix* m2 = Matrix::newTranslate(10, 5, 6);
92 Matrix m1;
94 Matrix* m2 = Matrix::newScale(10, 5, 6);
101 Matrix m1;
103 Matrix* m2 = Matrix::newRotate(180, 1, 0, 1);
111 Matrix m1;
112 Matrix m2;
113 Matrix m3;
122 for (int i = 0; i < Matrix::MATRIX_SIZE; i++) {
134 checkValues(m3.mData, expected, Matrix::MATRIX_SIZE);
153 // Set the view matrix. This matrix can be said to represent the camera position.
154 Matrix* m = Matrix::newLookAt(eyeX, eyeY, eyeZ, centerX, centerY, centerZ,
163 checkValues(m->mData, expected, Matrix::MATRIX_SIZE);
176 Matrix* m = Matrix::newFrustum(left, right, bottom, top, near, far);
184 checkValues(m->mData, expected, Matrix::MATRIX_SIZE);
189 Matrix* m = Matrix::newTranslate(5, 6, 8);
197 checkValues(m->mData, expected, Matrix::MATRIX_SIZE);
202 Matrix* m = Matrix::newScale(3, 7, 2);
210 checkValues(m->mData, expected, Matrix::MATRIX_SIZE);
215 Matrix* m = Matrix::newRotate(45.0f, 0.0f, 1.0f, 0.0f);
226 checkValues(m->mData, expected, Matrix::MATRIX_SIZE);
233 Matrix m;
236 for (int i = 0; i < Matrix::MATRIX_SIZE; i++) {
240 Matrix::multiplyVector(out, m, in);