All pastes #274098 Raw Edit

wu

public text v1 · immutable
·published 2006-12-10 12:45 UTC
rendered paste body
[rotate around x]
x = x
y = y*cos(deg) - z*sin(deg)
z = y*sin(deg) + z*cos(deg)

[rotate around y]
x = x*cos(deg) - z*sin(deg)
y = y
z = x*sin(deg) + z*cos(deg)

[rotate around z]
x = x*cos(deg) - y*sin(deg)
y = x*sin(deg) + y*cos(deg)
z = z