3-d rotations


trig number

value 0 - 1, sign1, sign2


		arcsin		arccos 		arctan


0-1 + +		0-90		0-90		0-90

0-1 + -		90-180		270-360

0-1 - +		180-270		90-180

0-1 - -		270-360		180-270



for each point x1, y1, z1


rotangle1. around y axis
rotangle2. around z axis
rotangle3. around x axis


rotate( x1, y1, z1, rotangle1, rotangle2, rotangle3 )


z2 = sin( arcsin( z1, sgn(z1), sgn(x1) ) + rotangle1 )
x2 = cos( arccos( x1, sgn(x1), sgn(z1) ) + rotangle1 )

y2 = sin( arcsin( y1, sgn(y1), sgn(x2) ) + rotangle2 )
x3 = cos( arccos( x2, sgn(x2), sgn(y1) ) + rotangle2 )

y3 = sin( arcsin( y2, sgn(y2), sgn(z2) ) + rotangle3 )
z3 = cos( arccos( z2, sgn(z2), sgn(y2) ) + rotangle3 )


new point x3, y3, z3



