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