kstars
Go to the documentation of this file.
23 for(
int i = 0;i < 4;i++ )
24 for(
int j = 0;j < 4;j++ )
25 x[i][j] = (i==j) ? v : 0.0;
32 for(
int i = 0;i < 4;i++ )
33 for(
int j = 0;j < 4;j++ )
42 for(
int i = 0;i < 4;i++ )
47 for(
int j = 0;j < 4;j++ )
54 for(
int j = 0;j < 4;j++ )
60 double mulby =
x[j][i];
61 for(
int k = 0;k < 4;k++)
63 x[j][k] -= mulby*
x[i][k];
64 Out.
x[j][k] -= mulby*Out.
x[i][k];
76 for(
int i = 0;i < 4;i++ )
77 for(
int j = i;j < 4;j++ )
88 for(
int i = 0;i < 4;i++ )
89 for(
int j = 0; j < 4;j++ )
97 for(
int i = 0;i < 4;i++ )
98 for(
int j = 0; j < 4;j++ )
106 for(
int i = 0;i < 4;i++ )
107 for(
int j = 0; j < 4;j++ )
108 x[i][j] -= A.
x[i][j];
115 for(
int i = 0;i < 4;i++ )
116 for(
int j = 0; j < 4;j++ )
125 for(
int i = 0;i < 4;i++ )
126 for(
int j = 0; j < 4;j++ )
129 for(
int k = 0;k < 4;k++ )
130 sum += res.
x[i][k] * A.
x[k][j];
140 for(
int i = 0;i < 4;i++ )
141 for(
int j = 0; j < 4;j++ )
142 res.
x[i][j] = A.
x[i][j] + B.
x[i][j];
150 for(
int i = 0;i < 4;i++ )
151 for(
int j = 0; j < 4;j++ )
152 res.
x[i][j] = A.
x[i][j] - B.
x[i][j];
160 for(
int i = 0;i < 4;i++ )
161 for(
int j = 0; j < 4;j++ )
164 for(
int k = 0;k < 4;k++ )
165 sum += A.
x[i][k] * B.
x[k][j];
176 for(
int i = 0;i < 4;i++ )
177 for(
int j = 0; j < 4;j++ )
178 res.
x[i][j] = A.
x[i][j] * v;
187 res.
x = v.
x*M.
x[0][0] + v.
y*M.
x[0][1] + v.
z*M.
x[0][2] + M.
x[0][3];
188 res.
y = v.
x*M.
x[1][0] + v.
y*M.
x[1][1] + v.
z*M.
x[1][2] + M.
x[1][3];
189 res.
z = v.
x*M.
x[2][0] + v.
y*M.
x[2][1] + v.
z*M.
x[2][2] + M.
x[2][3];
241 double Cosine = cos( Angle );
242 double Sine = sin( Angle );
244 res.
x[1][1] = Cosine;
247 res.
x[2][2] = Cosine;
260 double Cosine = cos( Angle );
261 double Sine = sin( Angle );
263 res.
x[0][0] = Cosine;
266 res.
x[2][2] = Cosine;
274 double Cosine = cos( Angle );
275 double Sine = sin( Angle );
279 res.
x[0][0] = Cosine;
282 res.
x[1][1] = Cosine;
290 double Cosine = cos( angle );
291 double Sine = sin( angle );
294 res.
x[0][0] = axis.
x*axis.
x + (1 - axis.
x * axis.
x) * Cosine;
295 res.
x[0][1] = axis.
x*axis.
y * (1 - Cosine) + axis.
z * Sine;
296 res.
x[0][2] = axis.
x*axis.
z * (1 - Cosine) - axis.
y * Sine;
299 res.
x[1][0] = axis.
x*axis.
y * (1 - Cosine) - axis.
z * Sine;
300 res.
x[1][1] = axis.
y*axis.
y + (1 - axis.
y * axis.
y) * Cosine;
301 res.
x[1][2] = axis.
y*axis.
z * (1 - Cosine) + axis.
x * Sine;
304 res.
x[2][0] = axis.
x*axis.
z * (1 - Cosine) + axis.
y * Sine;
305 res.
x[2][1] = axis.
y*axis.
z * (1 - Cosine) - axis.
x * Sine;
306 res.
x[2][2] = axis.
z*axis.
z + (1 - axis.
z * axis.
z) * Cosine;
Matrix RotateY(double Angle)
Matrix Translate(const Vector &Loc)
Matrix Scale(const Vector &v)
Matrix & operator=(const Matrix &)
Matrix Rotate(const Vector &axis, double angle)
Matrix & operator*=(const Matrix &)
Matrix operator*(const Matrix &A, const Matrix &B)
Matrix Transform(const Vector &v1, const Vector &v2, const Vector &v3)
Matrix operator-(const Matrix &A, const Matrix &B)
Matrix & operator-=(const Matrix &)
Matrix operator+(const Matrix &A, const Matrix &B)
Matrix RotateX(double Angle)
Matrix RotateZ(double Angle)
Matrix & operator+=(const Matrix &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:20 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.