The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!
|
|
complex angles | ||||||
Previous Image | Next Image | ||||||
Description: Based on Trifox's idea to handle the angles of a 3d bulb as complex numbers, raised to a power of 2. code: r := sqrt(rout); t1 := arctan2(y, x) / ascale; t2 := arcsin(z / r) / ascale; ipow2(t2, t1); sincosd(t2 * ascale, S1, C1); sincosd(t1 * ascale, S2, C2); x := rout * C1 * C2 + Cx; y := rout * S1 * C2 + Cy; z := rout * S2 + Cz; ascale was sqrt(2), t2 and t1 flipped in the power function because of nicer shapes. rout is the square of the 3d vector length. Stats: Total Favorities: 0 View Who Favorited Filesize: 271.41kB Height: 937 Width: 1200 Posted by: Jesse October 06, 2010, 07:08:19 PM Rating: by 3 members. Image Linking Codes
|
||||||
0 Members and 1 Guest are viewing this picture. | ||||||
Related Images | ||||||
|
|
Comments (1) | |
DarkBeam | March 23, 2011, 06:54:34 PM Why not included to database |
Powered by SMF Gallery Pro