Chemical Data Processing Library Python API - Version 1.2.0
Public Member Functions | Properties | List of all members
CDPL.Math.LRealQuaternion Class Reference
+ Inheritance diagram for CDPL.Math.LRealQuaternion:

Public Member Functions

None __init__ ()
 Initializes the LRealQuaternion instance.
 
None __init__ (LRealQuaternion q)
 Initializes a copy of the LRealQuaternion instance q. More...
 
None __init__ (int r)
 Initializes the LRealQuaternion instance. More...
 
LRealQuaternion set (int r=0)
 
int getObjectID ()
 Returns the numeric identifier (ID) of the wrapped C++ class instance. More...
 
int getC1 ()
 
int getC2 ()
 
int getC3 ()
 
int getC4 ()
 
object toArray ()
 
LRealQuaternion assign (LRealQuaternion q)
 Replaces the current state of self with a copy of the state of the LRealQuaternion instance q. More...
 
None swap (LRealQuaternion q)
 
LRealQuaternion __iadd__ (int t)
 Performs the in-place addition operation self += t. More...
 
LRealQuaternion __iadd__ (object q)
 Performs the in-place addition operation self += q. More...
 
LRealQuaternion __isub__ (int t)
 Performs the in-place subtraction operation self -= t. More...
 
LRealQuaternion __isub__ (object q)
 Performs the in-place subtraction operation self -= q. More...
 
LRealQuaternion __imul__ (int t)
 Performs the in-place multiplication operation self *= t. More...
 
LRealQuaternion __imul__ (object q)
 Performs the in-place multiplication operation self *= q. More...
 
LRealQuaternion __idiv__ (int t)
 Performs the in-place division operation self /= t. More...
 
LRealQuaternion __idiv__ (object q)
 Performs the in-place division operation self /= q. More...
 
LRealQuaternion __itruediv__ (int t)
 
LRealQuaternion __itruediv__ (object q)
 
bool __eq__ (LRealQuaternion q)
 Returns the result of the comparison operation self == q. More...
 
bool __eq__ (ConstLQuaternionExpression q)
 Returns the result of the comparison operation self == q. More...
 
bool __ne__ (LRealQuaternion q)
 Returns the result of the comparison operation self != q. More...
 
bool __ne__ (ConstLQuaternionExpression q)
 Returns the result of the comparison operation self != q. More...
 
str __str__ ()
 Returns a string representation of the LRealQuaternion instance. More...
 
LRealQuaternion __pos__ ()
 
ConstLQuaternionExpression __neg__ ()
 
ConstLQuaternionExpression __add__ (int t)
 Returns the result of the addition operation self + t. More...
 
ConstLQuaternionExpression __add__ (ConstLQuaternionExpression e)
 Returns the result of the addition operation self + e. More...
 
ConstLQuaternionExpression __radd__ (int t)
 
ConstLQuaternionExpression __sub__ (int t)
 Returns the result of the subtraction operation self - t. More...
 
ConstLQuaternionExpression __sub__ (ConstLQuaternionExpression e)
 Returns the result of the subtraction operation self - e. More...
 
ConstLQuaternionExpression __rsub__ (int t)
 
ConstLQuaternionExpression __mul__ (int t)
 Returns the result of the multiplication operation self * t. More...
 
ConstLQuaternionExpression __mul__ (ConstLQuaternionExpression e)
 Returns the result of the multiplication operation self * e. More...
 
ConstLQuaternionExpression __rmul__ (int t)
 
ConstLQuaternionExpression __div__ (int t)
 Returns the result of the division operation self / t. More...
 
ConstLQuaternionExpression __div__ (ConstLQuaternionExpression e)
 Returns the result of the division operation self / e. More...
 
ConstLQuaternionExpression __truediv__ (int t)
 
ConstLQuaternionExpression __rdiv__ (int t)
 

Properties

 objectID = property(getObjectID)
 

Constructor & Destructor Documentation

◆ __init__() [1/2]

None CDPL.Math.LRealQuaternion.__init__ ( LRealQuaternion  q)

Initializes a copy of the LRealQuaternion instance q.

Parameters
qThe LRealQuaternion instance to copy.

◆ __init__() [2/2]

None CDPL.Math.LRealQuaternion.__init__ ( int  r)

Initializes the LRealQuaternion instance.

Parameters
r

Member Function Documentation

◆ set()

LRealQuaternion CDPL.Math.LRealQuaternion.set ( int   r = 0)
Parameters
r
Returns

◆ getObjectID()

int CDPL.Math.LRealQuaternion.getObjectID ( )

Returns the numeric identifier (ID) of the wrapped C++ class instance.

Different Python LRealQuaternion 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 LRealQuaternion 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().

Returns
The numeric ID of the internally referenced C++ class instance.

◆ getC1()

int CDPL.Math.LRealQuaternion.getC1 ( )
Returns

◆ getC2()

int CDPL.Math.LRealQuaternion.getC2 ( )
Returns

◆ getC3()

int CDPL.Math.LRealQuaternion.getC3 ( )
Returns

◆ getC4()

int CDPL.Math.LRealQuaternion.getC4 ( )
Returns

◆ toArray()

object CDPL.Math.LRealQuaternion.toArray ( )
Returns

◆ assign()

LRealQuaternion CDPL.Math.LRealQuaternion.assign ( LRealQuaternion  q)

Replaces the current state of self with a copy of the state of the LRealQuaternion instance q.

Parameters
qThe LRealQuaternion instance to copy.
Returns
self

◆ swap()

None CDPL.Math.LRealQuaternion.swap ( LRealQuaternion  q)
Parameters
q

◆ __iadd__() [1/2]

LRealQuaternion CDPL.Math.LRealQuaternion.__iadd__ ( int  t)

Performs the in-place addition operation self += t.

Parameters
tSpecifies the second addend.
Returns
The updated LRealQuaternion instance self.

◆ __iadd__() [2/2]

LRealQuaternion CDPL.Math.LRealQuaternion.__iadd__ ( object  q)

Performs the in-place addition operation self += q.

Parameters
qSpecifies the second addend.
Returns
The updated LRealQuaternion instance self.

◆ __isub__() [1/2]

LRealQuaternion CDPL.Math.LRealQuaternion.__isub__ ( int  t)

Performs the in-place subtraction operation self -= t.

Parameters
tSpecifies the subtrahend.
Returns
The updated LRealQuaternion instance self.

◆ __isub__() [2/2]

LRealQuaternion CDPL.Math.LRealQuaternion.__isub__ ( object  q)

Performs the in-place subtraction operation self -= q.

Parameters
qSpecifies the subtrahend.
Returns
The updated LRealQuaternion instance self.

◆ __imul__() [1/2]

LRealQuaternion CDPL.Math.LRealQuaternion.__imul__ ( int  t)

Performs the in-place multiplication operation self *= t.

Parameters
tSpecifies the multiplier.
Returns
The updated LRealQuaternion instance self.

◆ __imul__() [2/2]

LRealQuaternion CDPL.Math.LRealQuaternion.__imul__ ( object  q)

Performs the in-place multiplication operation self *= q.

Parameters
qSpecifies the multiplier.
Returns
The updated LRealQuaternion instance self.

◆ __idiv__() [1/2]

LRealQuaternion CDPL.Math.LRealQuaternion.__idiv__ ( int  t)

Performs the in-place division operation self /= t.

Parameters
tSpecifies the divisor.
Returns
The updated LRealQuaternion instance self.

◆ __idiv__() [2/2]

LRealQuaternion CDPL.Math.LRealQuaternion.__idiv__ ( object  q)

Performs the in-place division operation self /= q.

Parameters
qSpecifies the divisor.
Returns
The updated LRealQuaternion instance self.

◆ __itruediv__() [1/2]

LRealQuaternion CDPL.Math.LRealQuaternion.__itruediv__ ( int  t)
Parameters
t
Returns

◆ __itruediv__() [2/2]

LRealQuaternion CDPL.Math.LRealQuaternion.__itruediv__ ( object  q)
Parameters
q
Returns

◆ __eq__() [1/2]

bool CDPL.Math.LRealQuaternion.__eq__ ( LRealQuaternion  q)

Returns the result of the comparison operation self == q.

Parameters
qThe LRealQuaternion instance to be compared with.
Returns
The result of the comparison operation.

◆ __eq__() [2/2]

bool CDPL.Math.LRealQuaternion.__eq__ ( ConstLQuaternionExpression  q)

Returns the result of the comparison operation self == q.

Parameters
qThe ConstLQuaternionExpression instance to be compared with.
Returns
The result of the comparison operation.

◆ __ne__() [1/2]

bool CDPL.Math.LRealQuaternion.__ne__ ( LRealQuaternion  q)

Returns the result of the comparison operation self != q.

Parameters
qThe LRealQuaternion instance to be compared with.
Returns
The result of the comparison operation.

◆ __ne__() [2/2]

bool CDPL.Math.LRealQuaternion.__ne__ ( ConstLQuaternionExpression  q)

Returns the result of the comparison operation self != q.

Parameters
qThe ConstLQuaternionExpression instance to be compared with.
Returns
The result of the comparison operation.

◆ __str__()

str CDPL.Math.LRealQuaternion.__str__ ( )

Returns a string representation of the LRealQuaternion instance.

Returns
The generated string representation.

◆ __pos__()

LRealQuaternion CDPL.Math.LRealQuaternion.__pos__ ( )
Returns

◆ __neg__()

ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__neg__ ( )
Returns

◆ __add__() [1/2]

ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__add__ ( int  t)

Returns the result of the addition operation self + t.

Parameters
tSpecifies the second addend.
Returns
A ConstLQuaternionExpression instance holding the result of the addition.

◆ __add__() [2/2]

ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__add__ ( ConstLQuaternionExpression  e)

Returns the result of the addition operation self + e.

Parameters
eSpecifies the second addend.
Returns
A ConstLQuaternionExpression instance holding the result of the addition.

◆ __radd__()

ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__radd__ ( int  t)
Parameters
t
Returns

◆ __sub__() [1/2]

ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__sub__ ( int  t)

Returns the result of the subtraction operation self - t.

Parameters
tSpecifies the subtrahend.
Returns
A LRealQuaternion instance holding the result of the subtraction.

◆ __sub__() [2/2]

ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__sub__ ( ConstLQuaternionExpression  e)

Returns the result of the subtraction operation self - e.

Parameters
eSpecifies the subtrahend.
Returns
A LRealQuaternion instance holding the result of the subtraction.

◆ __rsub__()

ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__rsub__ ( int  t)
Parameters
t
Returns

◆ __mul__() [1/2]

ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__mul__ ( int  t)

Returns the result of the multiplication operation self * t.

Parameters
tSpecifies the multiplier.
Returns
A ConstLQuaternionExpression instance holding the result of the multiplication.

◆ __mul__() [2/2]

ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__mul__ ( ConstLQuaternionExpression  e)

Returns the result of the multiplication operation self * e.

Parameters
eSpecifies the multiplier.
Returns
A ConstLQuaternionExpression instance holding the result of the multiplication.

◆ __rmul__()

ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__rmul__ ( int  t)
Parameters
t
Returns

◆ __div__() [1/2]

ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__div__ ( int  t)

Returns the result of the division operation self / t.

Parameters
tSpecifies the divisor.
Returns
A ConstLQuaternionExpression instance holding the result of the division.

◆ __div__() [2/2]

ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__div__ ( ConstLQuaternionExpression  e)

Returns the result of the division operation self / e.

Parameters
eSpecifies the divisor.
Returns
A ConstLQuaternionExpression instance holding the result of the division.

◆ __truediv__()

ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__truediv__ ( int  t)
Parameters
t
Returns

◆ __rdiv__()

ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__rdiv__ ( int  t)
Parameters
t
Returns