Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
finding z
#1
http://68.102.38.232:8080/forum/show.php...191654&u=1
url=http://www.random-seed.net][Image: asylumsig.png][/url]
Reply
#2
When you want to rotate around the Z-axis, you don't actually do anything to Z... I'm not sure if you mean rotate, translate or what though... There are many operations you can do in a sub like that.


It's better to use matrices, but this is the general formula.

Code:
x' = x*cos radian - y*sin radian
y' = x*sin radian + y*cos radian
z' = z
Reply
#3
geez, heh... here we go.. oops

ok, if i make a sub for a 3d line command, assuming i'm using screen 13, how would i calculate z inside the sub, liek

sub 3dline(x,y,z)
z = ???
end sub

... i know i saw the equasion somewhere... crap
url=http://www.random-seed.net][Image: asylumsig.png][/url]
Reply
#4
well i dont know much to anything about 3d, but im assuming if youre going to draw a 3d line youre going to need

X1 X2
Y1 Y2
Z1 Z2

not just xyz...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)