473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Coordinate space manipulation

Hi, wondering if anyone can help me with this. I'm trying to do some
math for a reasonably simple bit of 3d math.

Given the following.

A 3d vector pointing in an arbitrary direction, call it 'forward',
that defines the target Z-axis, and a rotation around that vector,
'roll', which defines the target Y axis.

These define the 'target' coordinate system.

Given those two things, I need to be able to take a point relative to
the origin in normal cooridantes (e.g. <0,0,1is 'forward', the
vector defined by roll points at <0,1,0>, although unit-length isn't a
given here), and translate that into the target coordinate system.

Any suggestions on how to do this?
Jul 7 '08 #1
1 1495
Tyler Eaves wrote:
Hi, wondering if anyone can help me with this. I'm trying to do some
math for a reasonably simple bit of 3d math.

Given the following.

A 3d vector pointing in an arbitrary direction, call it 'forward',
that defines the target Z-axis, and a rotation around that vector,
'roll', which defines the target Y axis.

These define the 'target' coordinate system.

Given those two things, I need to be able to take a point relative to
the origin in normal cooridantes (e.g. <0,0,1is 'forward', the
vector defined by roll points at <0,1,0>, although unit-length isn't a
given here), and translate that into the target coordinate system.

Any suggestions on how to do this?
Uh... Do you have a C++ *language* question? Have you tried a newsgroup
in the 'sci.math' hierarchy first?

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jul 7 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Grumble | last post by:
Hello all, I want to read lines from a text file, where each line has the following syntax: token1:token2:token3 There could be white space between tokens and ':'
8
by: Piotre Ugrumov | last post by:
How can I implement a function that calculate the coordinates of a point, in 3 dimensional space? The function take 6 value (x, y, z, v(velocity), corner alfa, corner beta). The prototype is...
1
by: OtisUsenet | last post by:
Hello, Is there a way to use JavaScript to push a page element (a DIV block, for example) down the screen, so it sits at the bottom of the browser window. For example of a bad footer...
4
by: bill_nirl | last post by:
Hi all, can anyone help. i have a spreasheet (set up by a looney) they have in the surname field, the surname then forename. What sort of code would i need to use to sort this out. It looks...
0
by: peradino | last post by:
Hi I have a problem when I want to know how far my cursor is from the top of pictureBox. I can get mouse coordinate but it is screen coordinate. I can get the top position of my pictureBox...
0
by: herpers | last post by:
Hi, I read about the three different coordinate spaces and even though I thought I understand the concept I still can't get the result I am looking for. Here is what I want to do, maybe you...
9
by: Eric.Gabrielson | last post by:
Hello, I am very knew to python and am attempting to write a program in python that a friend of mine is having to write in java. I am doing this for fun and would like some help as to how i can...
0
by: jigsmshah | last post by:
I need to print a text file .When i print it ,it is not printed exactly form 0,0 coordiante of the page. I mean the top most left corner.It is leaving some margin from top and from left.The code is...
5
by: Johny | last post by:
How can I find the first space using regex? For example I have text Text=' This is a sample ' The last space I can remove by Text=re.sub(r"\s(?!\w)",'',Text) but I do not know how to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.