Trigonometric Matrix Rotations

Users who are viewing this thread

ssl

Banned
Messages
4,095
Reaction score
1
Tokenz
0.00z
Little background:

I used to utilize Visual Basic 6, doing crappy 3d stuff, using individual variables, making it harder upon myself. Now, however, I am using matrices, and a similar language, FreeBasic.

The issue is, however, that my trigonometric functions are not rounding out good enough, and therefore modify the original vertex's (a point, in three-dimensional space) location. After a full 360-degree rotation (and yes, internally, all rotations are converted into radians first), the vertex should be at its original location, just like drawing a circle.

However, the data is just not working out right.

My question is not programming related, but since it is part of what I am doing, I placed it in this here section. My question revolves around a good set of formulas to use for trigonometric formulas. I need a better set than built-in functions for sine/cosine. I was thinking about the trigonometric identities, however they also would utilize the sine/cosine functions.

Any ideas that I might be able to utilize?
 
  • 17
    Replies
  • 1K
    Views
  • 0
    Participant count
    Participants list

Murdoc

Naughty Boy
Messages
1,788
Reaction score
0
Tokenz
0.00z
do you code in Python? python has an awesome math library called pymath. maybe even try maple, or mathematica (same thing).
 

ssl

Banned
Messages
4,095
Reaction score
1
Tokenz
0.00z
i figure i can just keep a copy of a vertex...

2 vertices: original, plus the rotated version...

hmmm...

interesting thoughts...
 

Murdoc

Naughty Boy
Messages
1,788
Reaction score
0
Tokenz
0.00z
dude, go to python.org and download it for win32.
spend a day learning the basics... lists, tuples, and dictionaries, then delve into pymath. python is the greatest thing ever. i mean fuck, you can even write buffer overflows in it.
 

ssl

Banned
Messages
4,095
Reaction score
1
Tokenz
0.00z
scripting or programming language?

scripting implies, to me anyways, interpretation. programming, however, in my point of view, implies compilation.

quite a major difference.
 

Murdoc

Naughty Boy
Messages
1,788
Reaction score
0
Tokenz
0.00z
scripting or programming language?

scripting implies, to me anyways, interpretation. programming, however, in my point of view, implies compilation.

quite a major difference.


yeah its a scripting languate... interpreted. like perl.
but you can turn the .py file into a clickable executable or whatev in windows by using a tool called py2exe.
or in *nix just add the little hashbanghack #!/usr/bin/env python
 

ssl

Banned
Messages
4,095
Reaction score
1
Tokenz
0.00z
just because we throw a few terms around, does not mean you do not know more about a certain facet of computers that we do. in fact, you could and probably do understand what we are talking about, only on a different level of understanding, using slightly different concepts that you only can understand... and all that deep thought psyche stuff....

yeah...

you can still be a computer geek... just a different type of computer geek.

for instance, i have not much knowledge of server programming for web server use, such as the backend software running this forum site.
 

Murdoc

Naughty Boy
Messages
1,788
Reaction score
0
Tokenz
0.00z
just because we throw a few terms around, does not mean you do not know more about a certain facet of computers that we do. in fact, you could and probably do understand what we are talking about, only on a different level of understanding, using slightly different concepts that you only can understand... and all that deep thought psyche stuff....

yeah...

you can still be a computer geek... just a different type of computer geek.

for instance, i have not much knowledge of server programming for web server use, such as the backend software running this forum site.


aaaaahhhhh +1 to that.
i delve deeper into the core of operating systems... kernels.
mainly the freebsd kernel. but i also slam some linux code as well.
 

ssl

Banned
Messages
4,095
Reaction score
1
Tokenz
0.00z
really?

i was going to jump into linux, then went to college. i think i could dual boot this 20gb.. but that would be cutting it, and not much work to be done on the linux side of things..

plus, i am not experienced with the linux side of things... and ubuntu just made me want to play games.
 

Murdoc

Naughty Boy
Messages
1,788
Reaction score
0
Tokenz
0.00z
really?

i was going to jump into linux, then went to college. i think i could dual boot this 20gb.. but that would be cutting it, and not much work to be done on the linux side of things..

plus, i am not experienced with the linux side of things... and ubuntu just made me want to play games.

dude, fuck linux. go with freebsd. freebsd.org
trust me on this, its a bit harder to install, but you can dual boot and it is just sooooooooooooooooo much easier to use once its up and running. ive had one machine hosting up an ftp server and the uptime is over 2 years.
never had to even reboot the damn thing. i got it secured, compiled a custom kernel for the things i needed and bam. done deal. freebsd is awesome. its the only os i will use... well except for netbsd but thats only for certain applications.
 
78,874Threads
2,185,387Messages
4,959Members
Back
Top