math3d.rotation 四元数
More...
List of all members.
Detailed Description
math3d.rotation 四元数
Constructor & Destructor Documentation
math3d.rotation 四元素
__init__(x, y, z, w)
参数 :
x : float x分量
y : float y分量
z : float z分量
w : float w分量
Member Function Documentation
x.__cmp__(y) <==> cmp(x,y)
x.__repr__() <==> repr(x)
获取前向量
get_forward()
返回值 :
math3d.vector 前向量
获取右向量
get_right()
返回值:
math3d.vector 右向量
获取上向量
get_up()
返回值 :
math3d.vector 上向量
设置各分量
set(x, y, z, w)
参数 :
x : float x分量
y : float y分量
z : float z分量
w : float w分量
计算四元数插值,结果放到self
slerp(r1, r2, u)
参数 :
r1 : math3d.rotation 四元数r1
r2 : math3d.rotation 四元数r2
u : float 系数u
T.__new__(S, ...) -> a new object with type S, a subtype of T