;==============================================================================; ; ; ; Assembler Program By Vulture. ; ; 3D-system example. Use the following formulas to rotate a point: ; ; ; ; Rotate around x-axis ; ; YT = Y * COS(xang) - Z * SIN(xang) / 256 ; ; ZT = Y * SIN(xang) + Z * COS(xang) / 256 ; ; Y = YT ; ; Z = ZT ; ; ; ; Rotate around y-axis ; ; XT = X * COS(yang) - Z * SIN(yang) / 256 ; ; ZT = X * SIN(yang) + Z * COS(yang) / 256 ; ; X = XT ; ; Z = ZT ; ; ; ; Rotate around z-axis ; ; XT = X * COS(zang) - Y * SIN(zang) / 256 ; ; YT = X * SIN(zang) + Y * COS(zang) / 256 ; ; X = XT ; ; Y = YT ; ; ; ; Divide by 256 coz we have multiplyd our sin values with 256 too. ; ; This example isn't too fast right now but it'll work just fine. ; ; ; ; Current Date: 6-9-95 Vulture ; ; ; ;==============================================================================;