Uranium
Application Framework
UM.Math.Quaternion.Quaternion Class Reference

Public Member Functions

def __init__
 
def getData (self)
 
def x (self)
 
def y (self)
 
def z (self)
 
def w (self)
 
def setByAngleAxis
 
def __mul__ (self, other)
 
def __imul__ (self, other)
 
def __add__ (self, other)
 
def __iadd__ (self, other)
 
def __truediv__ (self, other)
 
def __itruediv__ (self, other)
 
def __eq__ (self, other)
 
def __neg__ (self)
 
def getInverse (self)
 
def invert (self)
 
def rotate (self, vector)
 
def dot (self, other)
 
def length (self)
 
def normalize (self)
 
def setByMatrix
 
def toMatrix (self)
 
def __repr__ (self)
 
def __str__ (self)
 

Static Public Member Functions

def slerp (start, end, amount)
 
def rotationTo (v1, v2)
 
def fromMatrix
 
def fromAngleAxis
 

Static Public Attributes

float EPS = numpy.finfo(float).eps * 4.0
 

Detailed Description

Unit Quaternion class based on numpy arrays.

This class represents a Unit quaternion that can be used for rotations.

:note The operations that modify this quaternion will ensure the length
of the quaternion remains 1. This is done to make this class simpler
to use.

Member Function Documentation

◆ rotationTo()

def UM.Math.Quaternion.Quaternion.rotationTo (   v1,
  v2 
)
static
Returns a quaternion representing the rotation from vector 1 to vector 2.

:param v1: :type{Vector} The vector to rotate from.
:param v2: :type{Vector} The vector to rotate to.

The documentation for this class was generated from the following file: