38 inline V3 v3(
float x,
float y,
float z)
53 result.
x = v1.
x - v2.
x;
54 result.
y = v1.
y - v2.
y;
55 result.
z = v1.
z - v2.
z;
69 for (
int i = 0; i < 3; i++)
71 for (
int j = 0; j < 3; j++)
75 result.
e[i][j] = 1.0f;
79 result.
e[i][j] = 0.0f;
91 for (
int i = 0; i < 3; i++)
93 for (
int j = 0; j < 3; j++)
95 for (
int k = 0; k < 3; k++)
97 float v1 = m1.
e[k][j];
98 float v2 = m2.
e[i][k];
99 result.
e[i][j] += v1 * v2;
111 for (
int i = 0; i < 3; i++)
113 for (
int j = 0; j < 3; j++)
115 result.
e[i] += m.
e[j][i] * v.
e[j];
126 result.
e[1][1] = cos(theta);
127 result.
e[1][2] = sin(theta);
128 result.
e[2][1] = -1 * sin(theta);
129 result.
e[2][2] = cos(theta);
WAI : Where Am I: Collection of duplicate structs for vectors.
M3x3 multM3x3(M3x3 m1, M3x3 m2)
M3x3 rotateXM3x3(float theta)
V3 v3(float x, float y, float z)
V3 multM3x3V3(M3x3 m, V3 v)