Point At Given Distance in 3d Space

  • Thread starter Thread starter Sothh
  • Start date Start date
  • Tags Tags
    3d Point Space
Sothh
Messages
11
Reaction score
0
I am working on a simple ray tracer for rending point clouds in real time.

I am not so good with maths, and I am stuck with a fairly simple problem:

Given a start point (0,0,0) and a direction (0,90) and a distance 1-100, how do I get the 3d point the line will hit?

As this will go directly into code, it will be easier for me to use if no special math characters are used. (And easier for me to understand :)

Thanks!
 
Mathematics news on Phys.org
You have the origin in three dimensions, but I am not sure what "direction(0, 90)" means. Is that in "spherical coordinates" with \theta] (the &quot;longitude&quot;) equal to 0 and \phi (the &quot;co-latitude&quot;) so that is directed toward the positive x- axis? But then what &quot;third point&quot; are you talking about? You have only mentioned one point, the origin. And what do you mean by &quot;a distance 1-100&quot;? A distance is a single number.<br /> <br /> If you mean &quot;the point at distance 1 from the origin in the direction of the positive x-axis&quot;, that is, of course, (1, 0, 0). If you mean the point at distance 100 from the origin in that direction, that is (100, 0, 0). If you mean some point at distance x, where x is between 1 and 100, from the origin in that direction, that is (x, 0, 0).
 
Sorry, the direction is the longitude and latitude, or pitch and yaw.

1-100 is a single number, that may range between 1 to 100 (or more.)

I need the algorithm to find the 3d point that the line ends at when given a starting point, a direction, and a distance from the starting point.
 
This document might help if you can work in Cartesian, Vector, or Parameter Forms of 3D Equations for Lines and Planes
https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B8eDe0O_ATL_NjRjZDViOWUtZjk4NS00OTQyLThkODUtNDEzOWUzNTFhMmQ4&hl=en_US
 
Last edited by a moderator:
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...
I'm interested to know whether the equation $$1 = 2 - \frac{1}{2 - \frac{1}{2 - \cdots}}$$ is true or not. It can be shown easily that if the continued fraction converges, it cannot converge to anything else than 1. It seems that if the continued fraction converges, the convergence is very slow. The apparent slowness of the convergence makes it difficult to estimate the presence of true convergence numerically. At the moment I don't know whether this converges or not.
Back
Top