Python_2  1.0
Classes | Functions | Variables
ArcBall Namespace Reference

Math utilities, vector, matrix types and ArcBall quaternion rotation class. More...

Classes

class  ArcBallT
 

Functions

def sumDot (a, b)
 
def Matrix4fT ()
 
def Matrix3fT ()
 
def Quat4fT ()
 
def Vector3fT ()
 
def Point2fT (x=0.0, y=0.0)
 
def Vector3fDot (u, v)
 
def Vector3fCross (u, v)
 
def Vector3fLength (u)
 
def Matrix3fSetIdentity ()
 
def Matrix3fMulMatrix3f (matrix_a, matrix_b)
 
def Matrix4fSVD (NewObj)
 
def Matrix4fSetRotationScaleFromMatrix3f (NewObj, three_by_three_matrix)
 
def Matrix4fSetRotationFromMatrix3f (NewObj, three_by_three_matrix)
 Sets the rotational component (upper 3x3) of a given matrix to the matrix values in the T precision Matrix3d argument; the other elements of this matrix are unchanged; a singular value decomposition is performed on this object's upper 3x3 matrix to factor out the scale, then this object's upper 3x3 matrix components are replaced by the passed rotation components, and then the scale is reapplied to the rotational components. More...
 
def Matrix3fSetRotationFromQuat4f (q1)
 
def unit_test_ArcBall_module ()
 
def _test ()
 

Variables

float Epsilon = 1.0e-5
 

Detailed Description

Math utilities, vector, matrix types and ArcBall quaternion rotation class.

Function Documentation

◆ _test()

def ArcBall._test ( )
private

◆ Matrix3fMulMatrix3f()

def ArcBall.Matrix3fMulMatrix3f (   matrix_a,
  matrix_b 
)

References sumDot().

Referenced by unit_test_ArcBall_module(), and Lesson48.Upon_Drag().

◆ Matrix3fSetIdentity()

def ArcBall.Matrix3fSetIdentity ( )

Referenced by Lesson48.Upon_Click().

◆ Matrix3fSetRotationFromQuat4f()

def ArcBall.Matrix3fSetRotationFromQuat4f (   q1)

◆ Matrix3fT()

def ArcBall.Matrix3fT ( )

◆ Matrix4fSetRotationFromMatrix3f()

def ArcBall.Matrix4fSetRotationFromMatrix3f (   NewObj,
  three_by_three_matrix 
)

Sets the rotational component (upper 3x3) of a given matrix to the matrix values in the T precision Matrix3d argument; the other elements of this matrix are unchanged; a singular value decomposition is performed on this object's upper 3x3 matrix to factor out the scale, then this object's upper 3x3 matrix components are replaced by the passed rotation components, and then the scale is reapplied to the rotational components.

Parameters
NewObjgiven matrix
three_by_three_matrixT precision 3x3 matrix
Returns
scaled NewObj

References Matrix4fSetRotationScaleFromMatrix3f(), and Matrix4fSVD().

Referenced by unit_test_ArcBall_module(), Lesson48.Upon_Click(), and Lesson48.Upon_Drag().

◆ Matrix4fSetRotationScaleFromMatrix3f()

def ArcBall.Matrix4fSetRotationScaleFromMatrix3f (   NewObj,
  three_by_three_matrix 
)

◆ Matrix4fSVD()

def ArcBall.Matrix4fSVD (   NewObj)

◆ Matrix4fT()

def ArcBall.Matrix4fT ( )

◆ Point2fT()

def ArcBall.Point2fT (   x = 0.0,
  y = 0.0 
)

◆ Quat4fT()

def ArcBall.Quat4fT ( )

Referenced by ArcBall.ArcBallT.drag().

◆ sumDot()

def ArcBall.sumDot (   a,
  b 
)

◆ unit_test_ArcBall_module()

def ArcBall.unit_test_ArcBall_module ( )

◆ Vector3fCross()

def ArcBall.Vector3fCross (   u,
  v 
)

Referenced by ArcBall.ArcBallT.drag().

◆ Vector3fDot()

def ArcBall.Vector3fDot (   u,
  v 
)

Referenced by ArcBall.ArcBallT.drag().

◆ Vector3fLength()

def ArcBall.Vector3fLength (   u)

References sumDot().

Referenced by ArcBall.ArcBallT.drag().

◆ Vector3fT()

def ArcBall.Vector3fT ( )

Variable Documentation

◆ Epsilon

float ArcBall.Epsilon = 1.0e-5