Searched refs:matrix (Results 1 - 20 of 20) sorted by relevance

/haiku/src/tests/kits/interface/picture/
H A DMatrix.h33 BMatrix &operator*=(const BMatrix &matrix);
41 BTransformIterator(BMatrix *matrix);
148 inline BMatrix &BMatrix::operator*=(const BMatrix &matrix) argument
152 m.a = a * matrix.a + c * matrix.b;
153 m.b = b * matrix.a + d * matrix.b;
154 m.c = a * matrix.c + c * matrix.d;
155 m.d = b * matrix
164 BTransformIterator(BMatrix *matrix) argument
[all...]
H A DSVGViewView.cpp375 void Svg2PictureView::GetMatrixAttribute(const XML_Char **attributes, const char *name, BMatrix *matrix) {
404 matrix->Translate(x, y);
411 matrix->Rotate(angle);
417 matrix->Scale(sx, sy);
421 matrix->Scale(sx, sx);
429 matrix->SkewX(angle);
436 matrix->SkewY(angle);
978 BMatrix matrix;
979 GetMatrixAttribute(attributes, "transform", &matrix);
980 fState.fMatrix *= matrix;
977 BMatrix matrix; local
[all...]
H A DSVGViewView.h93 void GetMatrixAttribute(const XML_Char **attributes, const char *name, BMatrix *matrix);
/haiku/src/servers/app/drawing/Painter/
H A DTransformable.cpp5 * A handy front-end to agg::trans_affine transformation matrix.
50 ret = archive->FindDouble("affine matrix", i, &storage[i]);
73 ret = into->AddDouble("affine matrix", storage[i]);
86 Transformable::StoreTo(double matrix[6]) const
88 store_to(matrix);
93 Transformable::LoadFrom(double matrix[6]) argument
98 t.load_from(matrix);
100 load_from(matrix);
269 double matrix[6]; local
270 store_to(matrix);
[all...]
H A DTransformable.h5 * A handy front-end to agg::trans_affine transformation matrix.
27 // stores matrix directly to message, deep is ignored
30 void StoreTo(double matrix[6]) const;
31 void LoadFrom(double matrix[6]);
33 // set to or combine with other matrix
H A DPainter.cpp1965 agg::trans_affine& matrix, float gradient_d2) const
1970 matrix.reset();
1971 matrix *= agg::trans_affine_scaling(sqrt(dx * dx + dy * dy) / gradient_d2);
1972 matrix *= agg::trans_affine_rotation(atan2(dy, dx));
1973 matrix *= agg::trans_affine_translation(startPoint.x, startPoint.y);
1974 matrix *= fTransform;
1975 matrix.invert();
1981 agg::trans_affine& matrix, float gradient_d2) const
1983 matrix.reset();
1984 matrix *
1964 _CalcLinearGradientTransform(BPoint startPoint, BPoint endPoint, agg::trans_affine& matrix, float gradient_d2) const argument
1980 _CalcRadialGradientTransform(BPoint center, agg::trans_affine& matrix, float gradient_d2) const argument
[all...]
/haiku/src/libs/icon/transformer/
H A DAffineTransformer.cpp44 const void* matrix; local
46 if (archive->FindData("matrix", B_DOUBLE_TYPE,
47 &matrix, &dataSize) == B_OK) {
49 load_from((const double*)matrix);
111 double matrix[6]; local
112 store_to(matrix);
113 ret = into->AddData("matrix", B_DOUBLE_TYPE,
114 matrix, 6 * sizeof(double));
/haiku/src/libs/icon/transformable/
H A DTransformable.h32 void StoreTo(double matrix[matrix_size]) const;
33 void LoadFrom(const double matrix[matrix_size]);
35 // set to or combine with other matrix
H A DTransformable.cpp33 Transformable::StoreTo(double matrix[matrix_size]) const
35 store_to(matrix);
40 Transformable::LoadFrom(const double matrix[matrix_size]) argument
46 t.load_from(matrix);
48 load_from(matrix);
/haiku/src/apps/icon-o-matic/import_export/svg/
H A DSVGExporter.cpp232 // The transformation matrix is extracted again in order to
241 // start new shape and write transform matrix
457 string << "matrix(";
469 double matrix[Transformable::matrix_size]; local
470 object->StoreTo(matrix);
471 append_float(string, matrix[0]);
473 append_float(string, matrix[1]);
475 append_float(string, matrix[2]);
477 append_float(string, matrix[3]);
479 append_float(string, matrix[
[all...]
/haiku/src/libs/linprog/
H A DLayoutOptimizer.h18 void free_matrix(double** matrix);
H A DLayoutOptimizer.cpp77 // #pragma mark - vector and matrix operations
124 double** matrix = new(nothrow) double*[m]; local
125 if (!matrix)
130 delete[] matrix;
136 matrix[i] = row;
138 return matrix;
144 free_matrix(double** matrix) argument
146 if (matrix) {
147 delete[] *matrix;
148 delete[] matrix;
462 operator ()(double** matrix) argument
[all...]
/haiku/src/libs/icon/shape/
H A DShape.cpp189 const void* matrix; local
192 &matrix, &dataSize);
194 LoadFrom((const double*)matrix);
247 double matrix[size]; local
248 StoreTo(matrix);
250 matrix, size * sizeof(double));
/haiku/src/kits/interface/layouter/
H A DLayoutOptimizer.cpp63 // #pragma mark - vector and matrix operations
110 double** matrix = new(nothrow) double*[m]; local
111 if (!matrix)
116 delete[] matrix;
122 matrix[i] = row;
124 return matrix;
130 free_matrix(double** matrix) argument
132 if (matrix) {
133 delete[] *matrix;
134 delete[] matrix;
484 operator ()(double** matrix) argument
[all...]
/haiku/src/add-ons/screen_savers/nebula/
H A DNebula.cpp37 typedef float matrix[3][3]; typedef
86 mulmat(matrix* a, matrix* b, matrix* c)
101 mulvec(matrix* a, float* x, float* y, float* z)
112 setrmat(float a, float b, float c, matrix* m)
237 matrix ma, mb, mc, mr;
/haiku/src/apps/icon-o-matic/import_export/flat_icon/
H A DFlatIconExporter.cpp189 double matrix[matrixSize]; local
190 transformable->StoreTo(matrix);
192 // if (!buffer.Write((float)matrix[i]))
194 if (!write_float_24(buffer, (float)matrix[i]))
434 double matrix[6]; local
435 affine->store_to(matrix);
437 if (!write_float_24(buffer, (float)matrix[i]))
/haiku/src/libs/icon/flat_icon/
H A DFlatIconImporter.cpp147 double matrix[matrixSize]; local
152 matrix[i] = value;
154 transformable->LoadFrom(matrix);
451 double matrix[6]; local
458 matrix[i] = value;
460 affine->load_from(matrix);
/haiku/src/libs/icon/style/
H A DGradientTransformable.cpp63 const void* matrix; local
66 &matrix, &dataSize) == B_OK
68 LoadFrom((const double*)matrix);
126 double matrix[size]; local
127 StoreTo(matrix);
129 matrix, size * sizeof(double));
/haiku/src/add-ons/media/media-add-ons/radeon/
H A DMSP3430.cpp49 // source select and output channel matrix
50 MSP3430_DSP_SRC_MAT_MAIN = 0x0008, // loudspeaker source and matrix
53 MSP3430_DSP_SRC_MAT_AUX = 0x0009, // headphone source and matrix
56 MSP3430_DSP_SRC_MAT_SCART1 = 0x000a, // SCART1 source and matrix
59 MSP3430_DSP_SRC_MAT_SCART2 = 0x0041, // SCART2 source and matrix
62 MSP3430_DSP_SRC_MAT_I2S = 0x000b, // I2S source and matrix
65 MSP3430_DSP_SRC_MAT_QPEAK = 0x000c, // QuasiPeak detector source and matrix
313 // set sound mode, FM/AM matrix, source channels
334 void CMSP3430::SetFMPrescale(int gain, MSP3430_fm_matrix matrix, bool mute)
336 // set FM/AM prescale and FM matrix mod
[all...]
/haiku/src/tests/kits/game/chart/
H A DChartWindow.cpp230 /* product of a vector by a matrix */
242 /* extract the Nth vector/column of a matrix. */
254 /* as we use rotation matrix, the invert of the matrix
273 /* set a spherical rotation matrix */
287 /* rotation matrix */
1851 TMatrix matrix; local
1873 matrix.Set(fSpecials.list[j+2].x * 6.28319, fSpecials.list[j+2].y * 3.14159 - 1.5708, 0.0);
1874 fDeltaComet[j] = matrix.Axis(0) * 0.0015;
1875 dx = matrix
[all...]

Completed in 213 milliseconds