How Can I Calculate the Range of Values for Vector Math in 3D Art?

  • Thread starter Thread starter davidjonas
  • Start date Start date
  • Tags Tags
    3d Art Vector
davidjonas
Messages
1
Reaction score
0
Hi!

I am a software developer and at the moment I am working on media art projects dealing with generative art algorithms in 3D spaces. I have been stuck for a few hours with a little problem dealing with vector math and I can't reach a conclusion. If someone here could give me a little hand it would be greatly apreciated!

I have a random vector u(x,y,z) and a vector w(0,1,0). Vector u makes an angle of \alpha with w.
I want to generate a vector v, from random values, only making sure that the vector r=u+v makes an angle with w in the range [\alpha-C, \alpha+C] (being C a constant value).

What I need is to find a way to calculate the range of values for xv, yv, zv that obey to the referred condition.

If someone knows how this can be done or has any sugestions, tips, concepts to research, directions or anything that could be even slightly helpfull please do not hesitate in replying, every try to help is apreciated.

Thank you in advance!

David Jonas
 
Mathematics news on Phys.org
If ##\varphi## is the angle between ##\mathbf{w}## and ##\mathbf{r}=\mathbf{u}+\mathbf{v}## then we have
$$
\cos \varphi = \dfrac{\langle\mathbf{r},\mathbf{w} \rangle}{||\mathbf{r}||\cdot ||\mathbf{w}||}= \dfrac{r_y}{||\mathbf{r}||}= \dfrac{u_y+v_y}{\sqrt{\left( u_x+v_x \right)^2+\left( u_y+v_y \right)^2+\left( u_z+v_z \right)^2}}
$$
This is the condition you have. Now there are many possible choices for ##\mathbf{v}## which has been to be expected in 3D space.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Thread 'Imaginary pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top