compute arcsin angle , but with a 3th dimension

gauss55

New member
Joined
Dec 13, 2019
Messages
2
hi,

Sorry if go straight to the question and don't use the right (correct me if necessary)

Im' working with normalized vectors (x,y,z) in 3d game programming. It shows the amount of x, y and z when moving 1 unit in the 3d world

I remember this formula to find the : arcsin ( y / h) = angle (with h = 1 and y the normalized opposite )

Now, imagine there's also z , indicating the height. H still worth 1 , but now, how much y is affected by a z value ?

My question : how can i compute the same angle but taking account the z value?

i hope it's clear :/
 
if i use the method to compute angle from 3 points in 2D space, i will have [0,0,0] , [0,1,0] and [x,y,0]
 
What angle are you trying to find? It is not at all clear.

You have a vector <x,y,z> with length 1. (Your "h" appears to be that length, not a height as I think of it.) Your arcsin formula would find the angle from the x-axis to a vector <x,y>. Are you looking for the angle from the xy-plane to the vector <x,y,z>? Or for something else?
 
Top