JG ROOT Tools libraries
version 5.0 - august 2014
|
#include <RMatrix2D.hh>
Public Types | |
enum | RMatrixDef { columnVector = 0, lineVector = 1, axisVector = 2 } |
Interprétation des vecteurs à la création d'une matrice. More... | |
Public Member Functions | |
RMatrix2D (const Double_t diag=1.) | |
RMatrix2D (const Double_t m00, const Double_t m01, const Double_t m10, const Double_t m11) | |
RMatrix2D (const RVector2D v1, const RVector2D v2, const RMatrixDef type=columnVector) | |
RMatrix2D (const RMatrix2D &m) | |
virtual RMatrix2D & | operator= (const RMatrix2D &m) |
virtual RVector2D | operator[] (const u_int n) const |
virtual RVector2D | GetColumn (const u_int n) const |
virtual RVector2D | GetLine (const u_int n) const |
virtual RVector2D | GetAxis (const u_int n) const |
virtual void | SetColumn (const u_int n, const RPoint2D v) |
virtual void | SetLine (const u_int n, const RPoint2D v) |
virtual void | SetAxis (const u_int n, const RPoint2D v) |
Double_t | Determinant () const |
RMatrix2D | Inverse () const |
RVector2D | Transform (const RVector2D &v) const |
RMatrix2D | operator+ () const |
RMatrix2D | operator- () const |
RMatrix2D | operator+= (const RMatrix2D &m) |
RMatrix2D | operator-= (const RMatrix2D &m) |
RMatrix2D | operator*= (const RMatrix2D &m) |
RMatrix2D | operator*= (const Double_t r) |
RMatrix2D | operator/= (const Double_t r) |
RMatrix2D | operator+ (const RMatrix2D &m) const |
RMatrix2D | operator- (const RMatrix2D &m) const |
RMatrix2D | operator* (const RMatrix2D &m) const |
RVector2D | operator* (const RVector2D &v) const |
RMatrix2D | operator* (const Double_t r) const |
RMatrix2D | operator/ (const Double_t r) const |
ClassDef (RMatrix2D, 0) | |
Static Public Member Functions | |
static RMatrix2D | Rotation (const Double_t angle) |
Static Public Attributes | |
static const RMatrix2D | null = RMatrix2D(0.) |
Matrice nulle. | |
static const RMatrix2D | id = RMatrix2D(1.) |
Matrice identité | |
static const Double_t | zero = RVector2D::zero |
Limites de test du zéro | |
Protected Attributes | |
Double_t | me [4] |
Eléménts de matrice. | |
Private Member Functions | |
GObject (RMatrix2D) | |
Matrice dans un espace à 2 dimensions
Une matrice correspond à la transformation des coordonnées dans un changement de repère (cf. Algèbre 2D).
RMatrix2D::RMatrix2D | ( | const Double_t | diag = 1. | ) |
RMatrix2D::RMatrix2D | ( | const Double_t | m00, |
const Double_t | m01, | ||
const Double_t | m10, | ||
const Double_t | m11 | ||
) |
Matrix constructor from elements.
m00 | matrix element ligne 0 column 0 |
m01 | matrix element ligne 0 column 1 |
m10 | matrix element ligne 1 column 0 |
m11 | matrix element ligne 1 column 1 |
References me.
RMatrix2D::RMatrix2D | ( | const RVector2D | v1, |
const RVector2D | v2, | ||
const RMatrixDef | type = columnVector |
||
) |
Matrix constructor from 2 vectors. Depending on type parameters, the vectors are used in a different way to create the matrix:
v1 | first definition vector |
v2 | second definition vector |
type | vectors interpretation |
References axisVector, lineVector, me, RVector2D::X(), and RVector2D::Y().
RMatrix2D::RMatrix2D | ( | const RMatrix2D & | m | ) |
|
private |
Macro from GCpp library that defines the following functions:
|
virtual |
|
virtual |
Get a matrix column vector.
n | column number |
References me.
Referenced by operator*(), and operator*().
|
virtual |
Get a matrix line vector.
n | line number |
References me.
Referenced by RContourBaseEllipse::GetAxisA(), RContourBaseEllipse::GetAxisB(), and operator*().
|
virtual |
Return one of the transformation axis (see class description).
n | axis number |
References Determinant(), and me.
Referenced by Inverse(), RAffine2D::SetAxis(), and SetAxis().
|
virtual |
|
virtual |
|
virtual |
Set a transformation axis vector.
n | axis number (0 ou 1) |
v | vector |
Reimplemented in RAffine2D.
References axisVector, GetAxis(), and RMatrix2D().
|
inline |
Determinant calculation.
References me.
Referenced by GetAxis(), RContourBaseEllipse::GetAxisA(), RContourBaseEllipse::GetAxisB(), and Inverse().
|
inline |
Return invert matrix.
References columnVector, Determinant(), GetAxis(), RMatrix2D(), and zero.
Referenced by RAffine2D::Inverse().
Apply transformation to a vector.
v | operand vector |
|
inline |
Unary sign operator +.
Addition and affectation.
m | operand matrix |
Subtraction and affectation.
m | operand matrix |
Matrix product and affectation.
m | operand matrix |
|
inline |
Multiplication by scalar value and affectation.
r | real value (scalar) |
|
inline |
Division by a scalar value and affectation.
r | real value (scalar) |
|
inline |
|
inline |
Division by a scalar value.
r | real value (scalar) |
|
inlinestatic |
Get a rotation matrix.
angle | rotation angle |
RMatrix2D::ClassDef | ( | RMatrix2D | , |
0 | |||
) |
For ROOT dictionary.