![]() |
Chemical Data Processing Library Python API - Version 1.4.0
|
Rotation matrix holding floating-point values of type float.
More...
Inheritance diagram for CDPL.Math.FRotationMatrix:Public Member Functions | |
| None | __init__ (FRotationMatrix m) |
| Constructs a copy of the rotation matrix m. More... | |
| None | __init__ (int n, float w, float ux, float uy, float uz) |
| Constructs an N×N rotation matrix from an axis-angle representation. More... | |
| None | set (float w, float ux, float uy, float uz) |
| Sets the rotation from an axis-angle representation. More... | |
| int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
| int | getSize1 () |
| Returns the dimension N (the row count). More... | |
| int | getSize2 () |
| Returns the dimension N (the column count). More... | |
| bool | isEmpty () |
| Tells whether the matrix is empty (size zero). More... | |
| float | getElement (int i, int j) |
| Returns the rotation matrix element at (i, j). More... | |
| object | toArray () |
Converts the FRotationMatrix instance into a corresponding numpy.ndarray object. More... | |
| FRotationMatrix | assign (FRotationMatrix m) |
| Copy-assigns the dimension and the underlying quaternion components from m. More... | |
| None | swap (FRotationMatrix m) |
| Swaps the dimension and the underlying quaternion components with m. More... | |
| float | __call__ (int i, int j) |
| Returns the rotation matrix element at (i, j). More... | |
| float | __getitem__ (tuple ij) |
| Returns the rotation matrix element at (i, j). More... | |
| int | __len__ () |
| Returns the number of rows. More... | |
| bool | __eq__ (FRotationMatrix m) |
Returns the result of the comparison operation self == m. More... | |
| bool | __eq__ (ConstFMatrixExpression e) |
Returns the result of the comparison operation self == e. More... | |
| bool | __ne__ (FRotationMatrix m) |
Returns the result of the comparison operation self != m. More... | |
| bool | __ne__ (ConstFMatrixExpression e) |
Returns the result of the comparison operation self != e. More... | |
| str | __str__ () |
Returns a string representation of the FRotationMatrix instance. More... | |
| FRotationMatrix | __pos__ () |
| Returns self. More... | |
| ConstFMatrixExpression | __neg__ () |
Returns the result of the operation self * -1. More... | |
| ConstFMatrixExpression | __add__ (ConstFMatrixExpression e) |
Returns the result of the addition operation self + e. More... | |
| ConstFMatrixExpression | __sub__ (ConstFMatrixExpression e) |
Returns the result of the subtraction operation self - e. More... | |
| ConstFMatrixExpression | __mul__ (float t) |
Returns the result of the multiplication operation self * t. More... | |
| ConstFMatrixExpression | __mul__ (ConstFMatrixExpression e) |
Returns the result of the multiplication operation self * e. More... | |
| ConstFVectorExpression | __mul__ (ConstFVectorExpression e) |
Returns the result of the multiplication operation self * e. More... | |
| ConstFMatrixExpression | __div__ (float t) |
Returns the result of the division operation self // t. More... | |
| ConstFMatrixExpression | __truediv__ (float t) |
Returns the result of the true division operation self / t. More... | |
| ConstFMatrixExpression | __rmul__ (float t) |
Returns the result of the multiplication operation t * self. More... | |
Properties | |
| objectID = property(getObjectID) | |
| size1 = property(getSize1) | |
| size2 = property(getSize2) | |
Rotation matrix holding floating-point values of type float.
| None CDPL.Math.FRotationMatrix.__init__ | ( | FRotationMatrix | m | ) |
Constructs a copy of the rotation matrix m.
| m | The rotation matrix to copy. |
| None CDPL.Math.FRotationMatrix.__init__ | ( | int | n, |
| float | w, | ||
| float | ux, | ||
| float | uy, | ||
| float | uz | ||
| ) |
Constructs an N×N rotation matrix from an axis-angle representation.
| n | The matrix dimension N. |
| w | The rotation angle (in radians). |
| ux | The x-component of the rotation axis (unit vector). |
| uy | The y-component of the rotation axis (unit vector). |
| uz | The z-component of the rotation axis (unit vector). |
| None CDPL.Math.FRotationMatrix.set | ( | float | w, |
| float | ux, | ||
| float | uy, | ||
| float | uz | ||
| ) |
Sets the rotation from an axis-angle representation.
| w | The rotation angle (in radians). |
| ux | The x-component of the rotation axis (unit vector). |
| uy | The y-component of the rotation axis (unit vector). |
| uz | The z-component of the rotation axis (unit vector). |
| int CDPL.Math.FRotationMatrix.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python FRotationMatrix instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b thus cannot tell reliably whether the two FRotationMatrix instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID().
| int CDPL.Math.FRotationMatrix.getSize1 | ( | ) |
Returns the dimension N (the row count).
| int CDPL.Math.FRotationMatrix.getSize2 | ( | ) |
Returns the dimension N (the column count).
| bool CDPL.Math.FRotationMatrix.isEmpty | ( | ) |
Tells whether the matrix is empty (size zero).
True if N is zero, and False otherwise. | float CDPL.Math.FRotationMatrix.getElement | ( | int | i, |
| int | j | ||
| ) |
Returns the rotation matrix element at (i, j).
| i | The zero-based row index. |
| j | The zero-based column index. |
| Base.IndexError | if either index is out of range. |
| object CDPL.Math.FRotationMatrix.toArray | ( | ) |
Converts the FRotationMatrix instance into a corresponding numpy.ndarray object.
numpy.ndarray object. | FRotationMatrix CDPL.Math.FRotationMatrix.assign | ( | FRotationMatrix | m | ) |
Copy-assigns the dimension and the underlying quaternion components from m.
| m | The source rotation matrix. |
| None CDPL.Math.FRotationMatrix.swap | ( | FRotationMatrix | m | ) |
Swaps the dimension and the underlying quaternion components with m.
| m | The rotation matrix to swap with. |
| float CDPL.Math.FRotationMatrix.__call__ | ( | int | i, |
| int | j | ||
| ) |
Returns the rotation matrix element at (i, j).
| i | The zero-based row index. |
| j | The zero-based column index. |
| Base.IndexError | if either index is out of range. |
| float CDPL.Math.FRotationMatrix.__getitem__ | ( | tuple | ij | ) |
Returns the rotation matrix element at (i, j).
| i | The zero-based row index. |
| j | The zero-based column index. |
| Base.IndexError | if either index is out of range. |
| int CDPL.Math.FRotationMatrix.__len__ | ( | ) |
Returns the number of rows.
| bool CDPL.Math.FRotationMatrix.__eq__ | ( | FRotationMatrix | m | ) |
Returns the result of the comparison operation self == m.
| m | The FRotationMatrix instance to be compared with. |
| bool CDPL.Math.FRotationMatrix.__eq__ | ( | ConstFMatrixExpression | e | ) |
Returns the result of the comparison operation self == e.
| e | The ConstFMatrixExpression instance to be compared with. |
| bool CDPL.Math.FRotationMatrix.__ne__ | ( | FRotationMatrix | m | ) |
Returns the result of the comparison operation self != m.
| m | The FRotationMatrix instance to be compared with. |
| bool CDPL.Math.FRotationMatrix.__ne__ | ( | ConstFMatrixExpression | e | ) |
Returns the result of the comparison operation self != e.
| e | The ConstFMatrixExpression instance to be compared with. |
| str CDPL.Math.FRotationMatrix.__str__ | ( | ) |
Returns a string representation of the FRotationMatrix instance.
| FRotationMatrix CDPL.Math.FRotationMatrix.__pos__ | ( | ) |
Returns self.
| ConstFMatrixExpression CDPL.Math.FRotationMatrix.__neg__ | ( | ) |
Returns the result of the operation self * -1.
ConstFMatrixExpression instance holding the result of the element negation. | ConstFMatrixExpression CDPL.Math.FRotationMatrix.__add__ | ( | ConstFMatrixExpression | e | ) |
Returns the result of the addition operation self + e.
| e | Specifies the second addend. |
ConstFMatrixExpression instance holding the result of the addition. | ConstFMatrixExpression CDPL.Math.FRotationMatrix.__sub__ | ( | ConstFMatrixExpression | e | ) |
Returns the result of the subtraction operation self - e.
| e | Specifies the subtrahend. |
FRotationMatrix instance holding the result of the subtraction. | ConstFMatrixExpression CDPL.Math.FRotationMatrix.__mul__ | ( | float | t | ) |
Returns the result of the multiplication operation self * t.
| t | Specifies the multiplier. |
ConstFMatrixExpression instance holding the result of the multiplication. | ConstFMatrixExpression CDPL.Math.FRotationMatrix.__mul__ | ( | ConstFMatrixExpression | e | ) |
Returns the result of the multiplication operation self * e.
| e | Specifies the multiplier. |
ConstFMatrixExpression instance holding the result of the multiplication. | ConstFVectorExpression CDPL.Math.FRotationMatrix.__mul__ | ( | ConstFVectorExpression | e | ) |
Returns the result of the multiplication operation self * e.
| e | Specifies the multiplier. |
ConstFVectorExpression instance holding the result of the multiplication. | ConstFMatrixExpression CDPL.Math.FRotationMatrix.__div__ | ( | float | t | ) |
Returns the result of the division operation self // t.
| t | Specifies the divisor. |
ConstFMatrixExpression instance holding the result of the division. | ConstFMatrixExpression CDPL.Math.FRotationMatrix.__truediv__ | ( | float | t | ) |
Returns the result of the true division operation self / t.
| t | Specifies the divisor. |
ConstFMatrixExpression instance holding the result of the division. | ConstFMatrixExpression CDPL.Math.FRotationMatrix.__rmul__ | ( | float | t | ) |
Returns the result of the multiplication operation t * self.
| t | Specifies the multiplicand. |
ConstFMatrixExpression instance holding the result of the multiplication.