Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Nerdier post of the day: can you crack THIS geometry problem?

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » The DU Lounge Donate to DU
 
ZombieNixon Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Apr-25-06 04:15 PM
Original message
Nerdier post of the day: can you crack THIS geometry problem?
What is the general equation to generate a series of rotations (theta, phi, psi) about the three axes (x, y, z) so as to transform a vector describing one of these axes (those vectors being X: {1, 0, 0}, Y: {0, 1, 0}, Z: {0, 0, 1}) into an arbitrary orientation vector (i, j, k)?

Inputs given: i, j, k, all decimal values representing an orientation vector of length 1
Outputs needed: angles theta (rotation around the z-axis), phi (rotation around the y-axis), psi (rotation around the x-axis)

I sumbit this to you, Lounge, for your head-exploding pleasure. :argh: :banghead:

Enjoy! :evilgrin:
Printer Friendly | Permalink |  | Top
JohnKleeb Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Apr-25-06 04:15 PM
Response to Original message
1. You fucktard
Christ I dunno. Is the answer uhhh X?
Printer Friendly | Permalink |  | Top
 
ZombieNixon Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Apr-25-06 04:17 PM
Response to Reply #1
3. No.
I don't know what the answer is, but it's not X.

The values get put in a matrix, but I'm not sure what the values are supposed to represent. I'm hoping they're the angles of rotation or else I'm 100 times fuckeder. x(
Printer Friendly | Permalink |  | Top
 
JohnKleeb Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Apr-25-06 04:19 PM
Response to Reply #3
5. I have a math final next friday
I am dreading it like no other. I have no idea what you just said. The highest I got in high school as far as math goes was Geometry. Yes, I am a stupidhead when it comes to math.
Printer Friendly | Permalink |  | Top
 
ZombieNixon Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Apr-25-06 04:23 PM
Response to Reply #5
7. What level math is it?
:shrug:

Good luck!
Printer Friendly | Permalink |  | Top
 
JohnKleeb Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Apr-25-06 04:24 PM
Response to Reply #7
8. Math For the Liberal Arts I
Sigh if only they had a baseball statistics course it would be the first math course I'd truly ace since Financial Math last year which was a math elective.
Printer Friendly | Permalink |  | Top
 
DS1 Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Apr-25-06 04:16 PM
Response to Original message
2. Stop trying to con other people into doing your homework
Edited on Tue Apr-25-06 04:19 PM by DS1
well, at least you're not holding a "Graphic Design Contest - Winner gets a ummm free portfolio piece!"
Printer Friendly | Permalink |  | Top
 
ZombieNixon Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Apr-25-06 04:19 PM
Response to Reply #2
4. It's not homework, it's technically business.
Fortunately, I own the company, so there's no deadline, except "as soon as possible while still making it work." :D
Printer Friendly | Permalink |  | Top
 
ZombieNixon Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Apr-25-06 04:22 PM
Response to Reply #2
6. Well, if anyone can solve it, I'll give you credit for engine development.
Provided the solution works, of course.

It would be weird, seeing a DU username in the credits. :shrug:

:D
Printer Friendly | Permalink |  | Top
 
DS1 Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Apr-25-06 04:30 PM
Response to Reply #6
9. Just tell them that John Carmack said it couldn't be done, and that's that
Printer Friendly | Permalink |  | Top
 
ZombieNixon Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Apr-25-06 04:32 PM
Response to Reply #9
10. But them is me and I never believe myself.
:shrug: :D

It can be done, I just don't know how yet. There's a blasted function to do it, I just don't know where to put it. x(
Printer Friendly | Permalink |  | Top
 
Dangerously Amused Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Apr-25-06 04:40 PM
Response to Reply #10
13. I'll tell you where to put the blasted function.



Printer Friendly | Permalink |  | Top
 
ZombieNixon Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Apr-25-06 04:46 PM
Response to Reply #13
14. Where?
Q3Vector3D_Add(&limbRotOffsets],&theBone->rot,&playerObj]->rot);

if (abs(limbOrientationAxis]->limb].y) == 1.0f)
{
Q3Matrix4x4_SetRotateVectorToVector(&childMatrix,&limbOrientationAxis]->limb],&playerObj]->YAxisVector);
Q3Vector3D_Transform(&limbOrientationAxis]->limb],&childMatrix,&playerObj]->rot);
}

:P
Printer Friendly | Permalink |  | Top
 
Dangerously Amused Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Apr-25-06 05:13 PM
Response to Reply #14
15. I would suggest putting theBone



...right up the ol' Axis.



And keep children out of it, you perv!






Printer Friendly | Permalink |  | Top
 
ZombieNixon Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Apr-25-06 05:17 PM
Response to Reply #15
17. ROFL!
:rofl:
Printer Friendly | Permalink |  | Top
 
Orsino Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Apr-25-06 04:34 PM
Response to Original message
11. 9/11
That's always the answer--unless you've forgotten the lessons of September Eleventh?
Printer Friendly | Permalink |  | Top
 
ZombieNixon Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Apr-25-06 04:37 PM
Response to Reply #11
12. Error line 912: ';' expected.
9/11 <-

:shrug:
Printer Friendly | Permalink |  | Top
 
WritingIsMyReligion Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Apr-25-06 05:14 PM
Response to Original message
16. Is that in English?
:argh:
Printer Friendly | Permalink |  | Top
 
ZombieNixon Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Apr-25-06 05:17 PM
Response to Reply #16
18. No, it's in Proto-Indo-European.
:P
Printer Friendly | Permalink |  | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Thu Dec 26th 2024, 05:58 PM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » The DU Lounge Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC