private void OpSetTextMatrix(double a, double b, double c, double d, double e, double f) { Matrix3x3 newMatrix = new Matrix3x3(a, b, c, d, e, f); FlushTextElement(); _textMatrix = newMatrix; _textMatrixCurrent = _textMatrix.Copy(); }
private void OpTextDisplace(double x, double y) { FlushTextElement(); var newMatrix = new Matrix3x3(); newMatrix.Matrix[0, 2] = x; newMatrix.Matrix[1, 2] = y; _textMatrix = newMatrix.Multiply(_textMatrix); _textMatrixCurrent = _textMatrix.Copy(); }
public static int ChangeColumn(out Matrix3x3 R, Matrix3x3 A, Vector3 b, int j) { R = new Matrix3x3(); R.Copy(A); if (j < 0 || j >= 3) { return(1); } R[0, j] = b[0]; R[1, j] = b[1]; R[2, j] = b[2]; return(0); }
private void OpPushGraphState() { _graphicsMatrixStack.Add(_graphicsMatrix.Copy()); }