![]() |
Chemical Data Processing Library Python API - Version 1.4.0
|
A memory-efficient pure-real quaternion with component values of type float.
More...
Inheritance diagram for CDPL.Math.FRealQuaternion:Public Member Functions | |
| None | __init__ () |
| Constructs a zero-valued real quaternion (C1 = 0). | |
| None | __init__ (FRealQuaternion q) |
| Constructs a copy of the real quaternion q (possibly converting the component type). More... | |
| None | __init__ (float r) |
| Constructs the real quaternion with the supplied real component. More... | |
| FRealQuaternion | set (float r=0.0) |
| Assigns the scalar r to the real component. More... | |
| int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
| float | getC1 () |
| Returns the real component C1. More... | |
| float | getC2 () |
| Returns the imaginary component C2 (always zero for a real quaternion). More... | |
| float | getC3 () |
| Returns the imaginary component C3 (always zero for a real quaternion). More... | |
| float | getC4 () |
| Returns the imaginary component C4 (always zero for a real quaternion). More... | |
| object | toArray () |
Converts the FRealQuaternion instance into a corresponding numpy.ndarray object. More... | |
| FRealQuaternion | assign (FRealQuaternion q) |
| Copy-assigns the real component from q. More... | |
| None | swap (FRealQuaternion q) |
| Swaps the real component value with q. More... | |
| FRealQuaternion | __iadd__ (float t) |
| Adds the scalar t to the real component. More... | |
| FRealQuaternion | __iadd__ (object q) |
| Adds the real component of q to this quaternion's real component. More... | |
| FRealQuaternion | __isub__ (float t) |
| Subtracts the scalar t from the real component. More... | |
| FRealQuaternion | __isub__ (object q) |
| Subtracts the real component of q from this quaternion's real component. More... | |
| FRealQuaternion | __imul__ (float t) |
| Multiplies the real component by the scalar t. More... | |
| FRealQuaternion | __imul__ (object q) |
| Multiplies the real component by the real component of q. More... | |
| FRealQuaternion | __idiv__ (float t) |
| Divides the real component by the scalar t. More... | |
| FRealQuaternion | __idiv__ (object q) |
| Divides the real component by the real component of q. More... | |
| FRealQuaternion | __itruediv__ (float t) |
| Divides the real component by the scalar t. More... | |
| FRealQuaternion | __itruediv__ (object q) |
| Divides the real component by the real component of q. More... | |
| bool | __eq__ (FRealQuaternion q) |
Returns the result of the comparison operation self == q. More... | |
| bool | __eq__ (ConstFQuaternionExpression q) |
Returns the result of the comparison operation self == q. More... | |
| bool | __ne__ (FRealQuaternion q) |
Returns the result of the comparison operation self != q. More... | |
| bool | __ne__ (ConstFQuaternionExpression q) |
Returns the result of the comparison operation self != q. More... | |
| str | __str__ () |
Returns a string representation of the FRealQuaternion instance. More... | |
| FRealQuaternion | __pos__ () |
| Returns self. More... | |
| ConstFQuaternionExpression | __neg__ () |
Returns the result of the operation self * -1. More... | |
| ConstFQuaternionExpression | __add__ (float t) |
Returns the result of the addition operation self + t. More... | |
| ConstFQuaternionExpression | __add__ (ConstFQuaternionExpression e) |
Returns the result of the addition operation self + e. More... | |
| ConstFQuaternionExpression | __radd__ (float t) |
Returns the result of the addition operation t + self. More... | |
| ConstFQuaternionExpression | __sub__ (float t) |
Returns the result of the subtraction operation self - t. More... | |
| ConstFQuaternionExpression | __sub__ (ConstFQuaternionExpression e) |
Returns the result of the subtraction operation self - e. More... | |
| ConstFQuaternionExpression | __rsub__ (float t) |
Returns the result of the subtraction operation t - self. More... | |
| ConstFQuaternionExpression | __mul__ (float t) |
Returns the result of the multiplication operation self * t. More... | |
| ConstFQuaternionExpression | __mul__ (ConstFQuaternionExpression e) |
Returns the result of the multiplication operation self * e. More... | |
| ConstFQuaternionExpression | __rmul__ (float t) |
Returns the result of the multiplication operation t * self. More... | |
| ConstFQuaternionExpression | __div__ (float t) |
Returns the result of the division operation self // t. More... | |
| ConstFQuaternionExpression | __div__ (ConstFQuaternionExpression e) |
Returns the result of the division operation self // e. More... | |
| ConstFQuaternionExpression | __truediv__ (float t) |
Returns the result of the true division operation self / t. More... | |
| ConstFQuaternionExpression | __rdiv__ (float t) |
Returns the result of the division operation t // self. More... | |
Properties | |
| objectID = property(getObjectID) | |
A memory-efficient pure-real quaternion with component values of type float.
| None CDPL.Math.FRealQuaternion.__init__ | ( | FRealQuaternion | q | ) |
Constructs a copy of the real quaternion q (possibly converting the component type).
| q | The real quaternion to copy. |
| None CDPL.Math.FRealQuaternion.__init__ | ( | float | r | ) |
Constructs the real quaternion with the supplied real component.
| r | The real component value. |
| FRealQuaternion CDPL.Math.FRealQuaternion.set | ( | float | r = 0.0 | ) |
Assigns the scalar r to the real component.
| r | The scalar value. |
| int CDPL.Math.FRealQuaternion.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python FRealQuaternion 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 FRealQuaternion 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().
| float CDPL.Math.FRealQuaternion.getC1 | ( | ) |
Returns the real component C1.
| float CDPL.Math.FRealQuaternion.getC2 | ( | ) |
Returns the imaginary component C2 (always zero for a real quaternion).
| float CDPL.Math.FRealQuaternion.getC3 | ( | ) |
Returns the imaginary component C3 (always zero for a real quaternion).
| float CDPL.Math.FRealQuaternion.getC4 | ( | ) |
Returns the imaginary component C4 (always zero for a real quaternion).
| object CDPL.Math.FRealQuaternion.toArray | ( | ) |
Converts the FRealQuaternion instance into a corresponding numpy.ndarray object.
numpy.ndarray object. | FRealQuaternion CDPL.Math.FRealQuaternion.assign | ( | FRealQuaternion | q | ) |
Copy-assigns the real component from q.
| q | The source real quaternion. |
| None CDPL.Math.FRealQuaternion.swap | ( | FRealQuaternion | q | ) |
Swaps the real component value with q.
| q | The real quaternion to swap with. |
| FRealQuaternion CDPL.Math.FRealQuaternion.__iadd__ | ( | float | t | ) |
Adds the scalar t to the real component.
| t | The scalar addend. |
| FRealQuaternion CDPL.Math.FRealQuaternion.__iadd__ | ( | object | q | ) |
Adds the real component of q to this quaternion's real component.
| q | The source real quaternion. |
| FRealQuaternion CDPL.Math.FRealQuaternion.__isub__ | ( | float | t | ) |
Subtracts the scalar t from the real component.
| t | The scalar subtrahend. |
| FRealQuaternion CDPL.Math.FRealQuaternion.__isub__ | ( | object | q | ) |
Subtracts the real component of q from this quaternion's real component.
| q | The source real quaternion. |
| FRealQuaternion CDPL.Math.FRealQuaternion.__imul__ | ( | float | t | ) |
Multiplies the real component by the scalar t.
| t | The scalar multiplier. |
| FRealQuaternion CDPL.Math.FRealQuaternion.__imul__ | ( | object | q | ) |
Multiplies the real component by the real component of q.
| q | The source real quaternion. |
| FRealQuaternion CDPL.Math.FRealQuaternion.__idiv__ | ( | float | t | ) |
Divides the real component by the scalar t.
| t | The scalar divisor. |
| FRealQuaternion CDPL.Math.FRealQuaternion.__idiv__ | ( | object | q | ) |
Divides the real component by the real component of q.
| q | The source real quaternion. |
| FRealQuaternion CDPL.Math.FRealQuaternion.__itruediv__ | ( | float | t | ) |
Divides the real component by the scalar t.
| t | The scalar divisor. |
| FRealQuaternion CDPL.Math.FRealQuaternion.__itruediv__ | ( | object | q | ) |
Divides the real component by the real component of q.
| q | The source real quaternion. |
| bool CDPL.Math.FRealQuaternion.__eq__ | ( | FRealQuaternion | q | ) |
Returns the result of the comparison operation self == q.
| q | The FRealQuaternion instance to be compared with. |
| bool CDPL.Math.FRealQuaternion.__eq__ | ( | ConstFQuaternionExpression | q | ) |
Returns the result of the comparison operation self == q.
| q | The ConstFQuaternionExpression instance to be compared with. |
| bool CDPL.Math.FRealQuaternion.__ne__ | ( | FRealQuaternion | q | ) |
Returns the result of the comparison operation self != q.
| q | The FRealQuaternion instance to be compared with. |
| bool CDPL.Math.FRealQuaternion.__ne__ | ( | ConstFQuaternionExpression | q | ) |
Returns the result of the comparison operation self != q.
| q | The ConstFQuaternionExpression instance to be compared with. |
| str CDPL.Math.FRealQuaternion.__str__ | ( | ) |
Returns a string representation of the FRealQuaternion instance.
| FRealQuaternion CDPL.Math.FRealQuaternion.__pos__ | ( | ) |
Returns self.
| ConstFQuaternionExpression CDPL.Math.FRealQuaternion.__neg__ | ( | ) |
Returns the result of the operation self * -1.
ConstFQuaternionExpression instance holding the result of the element negation. | ConstFQuaternionExpression CDPL.Math.FRealQuaternion.__add__ | ( | float | t | ) |
Returns the result of the addition operation self + t.
| t | Specifies the second addend. |
ConstFQuaternionExpression instance holding the result of the addition. | ConstFQuaternionExpression CDPL.Math.FRealQuaternion.__add__ | ( | ConstFQuaternionExpression | e | ) |
Returns the result of the addition operation self + e.
| e | Specifies the second addend. |
ConstFQuaternionExpression instance holding the result of the addition. | ConstFQuaternionExpression CDPL.Math.FRealQuaternion.__radd__ | ( | float | t | ) |
Returns the result of the addition operation t + self.
| t | Specifies the first addend. |
ConstFQuaternionExpression instance holding the result of the addition. | ConstFQuaternionExpression CDPL.Math.FRealQuaternion.__sub__ | ( | float | t | ) |
Returns the result of the subtraction operation self - t.
| t | Specifies the subtrahend. |
FRealQuaternion instance holding the result of the subtraction. | ConstFQuaternionExpression CDPL.Math.FRealQuaternion.__sub__ | ( | ConstFQuaternionExpression | e | ) |
Returns the result of the subtraction operation self - e.
| e | Specifies the subtrahend. |
FRealQuaternion instance holding the result of the subtraction. | ConstFQuaternionExpression CDPL.Math.FRealQuaternion.__rsub__ | ( | float | t | ) |
Returns the result of the subtraction operation t - self.
| t | Specifies the minuend. |
FRealQuaternion instance holding the result of the subtraction. | ConstFQuaternionExpression CDPL.Math.FRealQuaternion.__mul__ | ( | float | t | ) |
Returns the result of the multiplication operation self * t.
| t | Specifies the multiplier. |
ConstFQuaternionExpression instance holding the result of the multiplication. | ConstFQuaternionExpression CDPL.Math.FRealQuaternion.__mul__ | ( | ConstFQuaternionExpression | e | ) |
Returns the result of the multiplication operation self * e.
| e | Specifies the multiplier. |
ConstFQuaternionExpression instance holding the result of the multiplication. | ConstFQuaternionExpression CDPL.Math.FRealQuaternion.__rmul__ | ( | float | t | ) |
Returns the result of the multiplication operation t * self.
| t | Specifies the multiplicand. |
ConstFQuaternionExpression instance holding the result of the multiplication. | ConstFQuaternionExpression CDPL.Math.FRealQuaternion.__div__ | ( | float | t | ) |
Returns the result of the division operation self // t.
| t | Specifies the divisor. |
ConstFQuaternionExpression instance holding the result of the division. | ConstFQuaternionExpression CDPL.Math.FRealQuaternion.__div__ | ( | ConstFQuaternionExpression | e | ) |
Returns the result of the division operation self // e.
| e | Specifies the divisor. |
ConstFQuaternionExpression instance holding the result of the division. | ConstFQuaternionExpression CDPL.Math.FRealQuaternion.__truediv__ | ( | float | t | ) |
Returns the result of the true division operation self / t.
| t | Specifies the divisor. |
ConstFQuaternionExpression instance holding the result of the division. | ConstFQuaternionExpression CDPL.Math.FRealQuaternion.__rdiv__ | ( | float | t | ) |
Returns the result of the division operation t // self.
| t | Specifies the dividend. |
ConstFQuaternionExpression instance holding the result of the division.