def transformAngle(alpha, theta, beta):
"""
return transform matrix
"""
Z = np.array([[cos(alpha), -sin(alpha), 0, 0],
[sin(alpha), cos(alpha), 0, 0],
[0, 0, 1, 0],
[0, 0, 0, 1]])
Y = np.array([[cos(theta), 0, sin(theta), 0],
[0, 1, 0, 0],
[-sin(theta), 0, cos(theta), 0],
[0, 0, 0, 1]])
X = np.array([[1, 0, 0, 0],
[0, cos(beta), -sin(beta), 0],
[0, sin(beta), cos(beta), 0],
[0, 0, 0, 1]])
tensorflow各种初始化函数
最新推荐文章于 2019-06-13 00:32:00 发布