0
votes
0answers
20 views

Get Vector From Angle In $3D$ Space

I have a camera angle in $x,y,z$ with values between $0$ and $360$, I'm trying to compute this into an 'aim vector' which would have values between $0,0,0$ and $1,1,1$ depending on what the angles ...
2
votes
2answers
47 views

Finding a 3rd coordinate of the rectangle points in 3d

I have a 4 3-D-points, each of them has only 2 of 3 known coordinates, as follow (? is unknown here): P5 (P5x, P5y?, P5z) P6 (P6x, P6y?, P6z) P3 (P3x, P3y, P3z?) P4 (P4x, P4y, P4z?) They build ...
2
votes
2answers
40 views

Calculate coordinate of any point on triangle in 3D plane

I am really stuck and can't find right way to write a formula(s) that will calculate Z coordinate of point on triangle plane in 3D plane. I know all coordinates of triangle points ( Ax, Ay, Az, Bx, ...
0
votes
0answers
15 views

Generate rotations about X & Y axes between certain 3D vectors

Given a semi-arbitrary 3D vector (the z will always be positive for my purposes), how could I find rotation about the X and Y axis? Alternatively, how might I simplify an XYZ rotation to the X and Y ...
1
vote
1answer
82 views

Finding the missing coordinate of a point within a 3D triangle

We have an equilateral triangle $ABC$ in 3-dimensional space. The points are known, such as: $A = (x_1,y_1,z_1)$ $B = (x_2,y_2,z_2)$ $C = (x_3,y_3,z_3)$ Point $P$ is on triangle $ABC$. If I know ...
1
vote
1answer
41 views

How do I calculate the dimensions of this Frustum?

So, I saw this question in a book, You have been given a cone. The cone's base angles are both equal to 75° and the vertical angle is (of course) 30°.The radius of the cone is 7 metres.Now, ...
1
vote
2answers
58 views

Rotate $z = 0$ plane in 3D

I have 100 points on $z=0$ plane. I want to rotate those points, such that they lie on any plane $P(a,b,c,d)$, preserving distances. Hence, I need a rotation matrix. For instance, if my points are ...
-1
votes
1answer
96 views

How to draw arrows by rotating lines in 3d space?

I am trying to figure out direction vectors of the arrowheads of an arrow. Basically I'm given a normalized direction vector ...
0
votes
1answer
47 views

How do I multiple these matrices together?

As a personal brain exercise, I've recently been trying to work out the math involved with rotating vertices around an arbitrary axis in 3D space. To do so, I've been relying very heavily on the ...
0
votes
2answers
38 views

How do I calculate the inverse of these matrices?

In learning how to rotate vertices about an arbitrary axis in 3D space, I came across the following matrices, which I need to calculate the inverse of to properly "undo" any rotation caused by them: ...
0
votes
1answer
96 views

Find a 3D vector given the angles of the axes and a magnitude

I would like to know how one would find a point from the angles of three axes and a magnitude. I know how to do this in 2D: $(\cosΘ * m, \sin(Θ) * m)$. However, I would like to know how this would be ...
0
votes
2answers
80 views

solving 3-d coordinates from x, y and z distance

I working with WiFi positioning and i want to know the exact coordinate where I am. Here is the problem..
2
votes
0answers
26 views

Taking into account Camera Direction in 3d models using Trig

I have been working on a 3d rendering project as code. I am a bit stumped on the math though. I know how to render points using arctangent on an HTML canvas using JavaScript, like this: ...
2
votes
1answer
101 views

Pipe-fitting problem 3D

I have a 3D pipe-fitting problem for which I was able to write the following equations: $$ y = \tan (a)\sqrt{x^2 + z^2}\\ z = \tan (b)\sqrt{x^2 + y^2}\\ y = \sin (a)\sqrt{x^2 + y^2 + z^2}\\ z = \sin ...
1
vote
0answers
131 views

3D Game: Pitch Yaw Roll of a point

I have a flat elliptical plane and I'm trying to figure out how to represent it based on its direction. So I basically need to calculate its pitch, yaw, and roll. I have a camera at $C$, and a point ...
0
votes
2answers
55 views

How to create a nice sky route

I'm trying to find a nice algorithm to trace a sky route between 2 points of a planet. Here is where I am : https://dl.dropboxusercontent.com/u/17657227/migrationGlobe/index.html (or here ...
1
vote
0answers
87 views

How to calculate center coordinates of two reverse arcs in 3D space

Given 3D points P1(200,60,140), P2(300,120,110), P3(3,0,-1), P4(-100,0,-1) and the radius of arc C1MP3 is equal to radius of arc C2MP1. How do I calculate coordinates x, y, z of points C1 and C2? ...
0
votes
0answers
33 views

Finding the coordinates of the top and bottom circles of a moving and rotating cylinder in 3D

I have a cylinder that is moving and rotating in a 3D space. I need to calculate the coordinates of the center of the cylinder's top and bottom circles. Here's the information I have : I have at the ...
0
votes
0answers
20 views

Resolving bearings for tilted structure (vector rotations)

I am trying to find a neat solution to resolving bearings for a tilted structure. For example, if I know that a hub is $268.74^{\circ}$ and offset ($X = -3.542 $m, $Y = -1.857$ m, $Z = 2.013$m) with ...
0
votes
2answers
61 views

If a line makes angles $\alpha, \beta, \gamma$ with the $x, y, z$ axes, then $\sin^2{\alpha} + \sin^2{\beta} + \sin^2{\gamma} = 2 $

The following is the question in my textbook:- If a straight line makes angle $\alpha$, $\beta$, $\gamma$ with the $x, y, z$ axes respectively, then show that $\sin^2{\alpha} + \sin^2{\beta} + ...
0
votes
0answers
168 views

Converting a 3x3 matrix to euler angles in various rotation orders

So let's say I have a 3x3 orientation matrix set up like: a b c d e f g h i which I have generated from euler angles in a left-handed, Y-vertical system. ...
1
vote
0answers
17 views

to find the radius of the sphere [duplicate]

I tried like: here slant height $l={h\over\sin 60}$ and radius of the base of the cone $R=h\tan 60$ but I am not able to find the radius of the sphere.
0
votes
3answers
289 views

3D Trig Question?

I've been having trouble with this question: David is in a life raft and Anna is in a cabin cruiser searching for him. They are in contact by mobile telephone. David tells Anna that he can see Mt ...
1
vote
1answer
888 views

Angles projected to planes between two lines, one of which is in rolled 3D coordinate system.

Let's define standard 3D cartesian coordinate system XYZ. In the system define a line that: has a (0, 0, 0) point lies on the YZ plane has defined an angle between itself and Z axis (lets call this ...
1
vote
1answer
40 views

A triangular “spot function”

z = (cos πx + cos πy) represents the classical "spot function", made by square cells, used in every laser printer's halftone screening. Does anyone knows the corresponding function to produce ...
2
votes
1answer
126 views

Algorithm for finding orientation of each face on a polyhedron?

I am working on making a dice rolling application and I need to find out how far in each of the three dimensions I must rotate each of the dice to make the correct side face the camera so the user can ...
1
vote
0answers
74 views

3d Implicit Trigonometry help?

I'm trying to understand implicit 3D trigonometry, specifically with this equation: $$\sin(y)+\cos(z)=\cos(x)$$ Can someone please explain to me what is going on with this equation? I really can't ...
2
votes
2answers
141 views

How to get angle bewteen two vectors in range -1 to 1 without using arc cosine?

Given two normalized vectors in 3d space, how can I get a value from $-1$ to $1$ based on their angle without using arc cosine? With use of arc cosine, I think this would give me the correct result. ...
2
votes
1answer
286 views

A controlled trapezoid transformation with perspective projecton

I'm trying to implement a controlled trapezoid transformation in Adobe Flash's ActionScript using the built-in perspective projection facility. To give you an idea of how the effect looks like: ...
1
vote
1answer
235 views

Determining camera orientation (possibly using calibration images).

I need to generate a camera calibration pattern. Cameras are expected to be placed at an average height of 15 to 30 feet above ground pointing downwards at roughly 30 degrees. These cameras are ...
0
votes
2answers
241 views

What does negative sine mean in this diagram?

I thought cos was x and sin was y. In quadrant two, cos is negative and sin is positive. Why does this diagram have a negative sign as the x-coord and cos as the y coordinate for q prime's vector? ...
0
votes
0answers
134 views

Determining a point in 3D space

So given a point, a rotation around the y-axis, a rotation around the x-axis, and a distance, how can one calculate the relative point in space? For example, the beginning coordinates are (0,0,0). ...
0
votes
0answers
268 views

Distance between two objects in a picture

lets say I have a photo that has a picture on a wall and a book upright on the desk. now i know the size of both of these objects. I want to find the distance between two of them on the photo, I was ...
0
votes
1answer
422 views

Find point in 3D space based on start point, three angles and a distance (need example)

I know this has been asked before but the answer wasn't very helpful, sorry. I need an example and to see each step of the equation being solved. Let's say we have 45 degree angles to each axis and ...
0
votes
1answer
463 views

Finding the distance between the centre of an arbitrarily rotated cylinder and a point on that cylinder

this is a bit more complicated than the post title suggests because I was running out of words. I suppose the full title would be: "Finding the distance between the centre of an arbitrarily rotated ...
1
vote
1answer
311 views

Determining angle of tilt from length of axes?

When taking a picture of a cross, if the center of the cross is known, is there any way to determine the angle at which the picture was taken based on the number of points on the y axis above and ...
1
vote
1answer
592 views

Find 3D rotation vector and angle to transform a rectangle into a given quadrilateral

I have a given rectangle that I need to transform into a given quadrilateral shape that resulted from a rotation and translation in 3D space, and subsequent projection. ...
1
vote
1answer
210 views

Finding the radius of a particular center voxel in 3D cylinder-like structure

From the image above, assume that it is a 3D image that is of m*n*o size. Each voxel can only be either 0 or 1. White is 1. Black is 0. In this 3D environment, there is one cylinder-like ...
0
votes
1answer
529 views

Find point in 3D space based on start point, three angles and a distance

I have a start point, {x,y,z} a distance, d and three angles, rotation about the x axis, rotation about the y axis and rotation about the z axis. Each angle is clockwise. How do I calculate the point ...
0
votes
1answer
1k views

Distance from a point to circle's closest point

So let's assume I have a point $P$ in $3d$ space $(x_0, y_0, z_0)$. And I have a circle $C$ that is centered at $(x_1, y_1, z_1)$ with a radius $r$. I need to find the distance from $P$ to the nearest ...