Talk:Find the intersection of a line with a plane: Difference between revisions
Content added Content deleted
(→A more general case should be added: Change to draft?) |
Walterpachl (talk | contribs) (→Java output for special casas: new section) |
||
Line 8: | Line 8: | ||
<br>g: A=(0,2,4) v=(3,2,1) |
<br>g: A=(0,2,4) v=(3,2,1) |
||
<br>..Walter Pachl 20:10, 3 July 2017 (UTC) |
<br>..Walter Pachl 20:10, 3 July 2017 (UTC) |
||
== Java output for special casas == |
|||
I tested some special cases: |
|||
<pre>If the ray is parallel to the plane: |
|||
Vector3D rv = new Vector3D(1.0, 1.0, 0.0); |
|||
Vector3D rp = new Vector3D(0.0, 0.0, 1.0); |
|||
Vector3D pn = new Vector3D(0.0, 0.0, 3.0); |
|||
Vector3D pp = new Vector3D(0.0, 0.0, 0.0); |
|||
The ray intersects the plane at (-Infinity, -Infinity, NaN) |
|||
REXX: Line is parallel to the plane |
|||
If the ray is within the plane: |
|||
Vector3D rv = new Vector3D(1.0, 1.0, 0.0); |
|||
Vector3D rp = new Vector3D(1.0, 1.0, 0.0); |
|||
Vector3D pn = new Vector3D(0.0, 0.0, 3.0); |
|||
Vector3D pp = new Vector3D(0.0, 0.0, 0.0); |
|||
The ray intersects the plane at (NaN, NaN, NaN) |
|||
REXX: Line is part of the plane</pre> |
|||
How could that be improved? ..Walter Pachl 18:16, 18 November 2018 (UTC) |
Revision as of 18:16, 18 November 2018
How is this to be done?
I think this should be a draft task as there seems to be nothing in the description about how to complete the task in a comparable manner. --Paddy3118 (talk) 09:45, 15 April 2018 (UTC)
A more general case should be added
such as:
E: n=(1,2,3) P=(3,3,3)
g: A=(0,2,4) v=(3,2,1)
..Walter Pachl 20:10, 3 July 2017 (UTC)
Java output for special casas
I tested some special cases:
If the ray is parallel to the plane: Vector3D rv = new Vector3D(1.0, 1.0, 0.0); Vector3D rp = new Vector3D(0.0, 0.0, 1.0); Vector3D pn = new Vector3D(0.0, 0.0, 3.0); Vector3D pp = new Vector3D(0.0, 0.0, 0.0); The ray intersects the plane at (-Infinity, -Infinity, NaN) REXX: Line is parallel to the plane If the ray is within the plane: Vector3D rv = new Vector3D(1.0, 1.0, 0.0); Vector3D rp = new Vector3D(1.0, 1.0, 0.0); Vector3D pn = new Vector3D(0.0, 0.0, 3.0); Vector3D pp = new Vector3D(0.0, 0.0, 0.0); The ray intersects the plane at (NaN, NaN, NaN) REXX: Line is part of the plane
How could that be improved? ..Walter Pachl 18:16, 18 November 2018 (UTC)