LEFT | RIGHT |
1 /* | 1 /* |
2 * ***** BEGIN GPL LICENSE BLOCK ***** | 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or | 4 * This program is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU General Public License | 5 * modify it under the terms of the GNU General Public License |
6 * as published by the Free Software Foundation; either version 2 | 6 * as published by the Free Software Foundation; either version 2 |
7 * of the License, or (at your option) any later version. | 7 * of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // ax+by+cz+d=0 | 51 // ax+by+cz+d=0 |
52 MT_Scalar d = -p[0].xyz().dot(normal); | 52 MT_Scalar d = -p[0].xyz().dot(normal); |
53 ········ | 53 ········ |
54 | 54 |
55 MT_Matrix3x3 mat3( p[0].getUV1()[0],p[0].getUV1()[1], 1, | 55 MT_Matrix3x3 mat3( p[0].getUV1()[0],p[0].getUV1()[1], 1, |
56 p[1].getUV1()[0],p[1].getUV1()[1
], 1, | 56 p[1].getUV1()[0],p[1].getUV1()[1
], 1, |
57 p[2].getUV1()[0],p[2].getUV1()[1
], 1); | 57 p[2].getUV1()[0],p[2].getUV1()[1
], 1); |
58 | 58 |
59 | 59 |
60 MT_Matrix3x3 mat3inv = mat3.inverse(); | 60 MT_Matrix3x3 mat3inv = mat3.inverse(); |
LEFT | RIGHT |