Point At Given Distance in 3d Space

  • Context: Undergrad 
  • Thread starter Thread starter Sothh
  • Start date Start date
  • Tags Tags
    3d Point Space
Click For Summary

Discussion Overview

The discussion revolves around calculating a 3D point based on a starting point, a direction specified in terms of angles, and a distance. The context includes programming and mathematical representation, particularly in relation to ray tracing and point clouds.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant describes a problem in ray tracing where they need to find a 3D point given a starting point at the origin, a direction expressed as angles, and a distance.
  • Another participant questions the meaning of the direction specified as "0, 90," suggesting it may refer to spherical coordinates but seeks clarification on the terms used.
  • A later reply clarifies that the direction refers to longitude and latitude (or pitch and yaw) and reiterates the need for an algorithm to determine the endpoint in 3D space.
  • A participant provides a link to a document that may assist in understanding Cartesian, Vector, or Parameter Forms of 3D equations for lines and planes.

Areas of Agreement / Disagreement

Participants do not appear to reach a consensus on the interpretation of the direction format or the specifics of the distance. Multiple interpretations of the direction and distance remain present in the discussion.

Contextual Notes

There are unresolved questions regarding the definitions of direction and distance, as well as the mathematical framework needed to compute the endpoint in 3D 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:

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K