Find coordinates of a 2D plane within a 3D plane












1












$begingroup$


I'm not sure this is the right place to ask this question, if not I do apologies and I will move on. I am asking this question as a programmer, however it seemed entirely maths based.



Image one is sitting still and holds in front of their face a sheet of graph paper with grid lines. This piece of paper represents a 2D plane, however although it exists inside of another 3D environment, it can be move about such that it's axis may not line up in any meaningful way.



Given 3 points where both the real world X,Y,Z values are known and the relative X,Y coordinates of their position within the paper drawn grid and given that two of these points share the same virtual 2D Y value but differ on X and the third point shares neither the same X nor Y value but does indeed exist on the same virtual 2D plane.



How can I then transform any given coordinate of one set to the other. Say I want to know where square (12,20) on the graph paper exists in the real world and vice versa.



Also, say I have a set of real world coordinates that is not on my 2D plane but directly above it. Is there a way and if so, how would i: traverse "downwards" through 3D space perpendicular to the find the 2D point directly below.










share|cite|improve this question









$endgroup$












  • $begingroup$
    How is your plane defined? You can't know what you want without some sort of description of this plane.
    $endgroup$
    – A.P.
    Aug 4 '15 at 7:44










  • $begingroup$
    Let's say I have an arena or perhaps an enclosed box. The box is 1,000cm on all sides. There is also a 100x100cm piece of paper with 1cm grid lines drawn on it. Therefor this sheet of paper represents a 2D plane that we define by the 1cm grid. This sheet of paper may be arbitraliy oriented within the box. I know of only 3 points on the box according to the criteria in the question. For example lets say the grid square (50,50)(45,60),(55,60) have known coordinates within the 3D box/arena. Is there a generlised way I can then derive the 3D coords of any given 2D coord on the sheet?
    $endgroup$
    – user1611172
    Aug 4 '15 at 8:00










  • $begingroup$
    Not unless you can tell us how the plane is given. How do you define its orientation and position in 3D space, for example?
    $endgroup$
    – A.P.
    Aug 4 '15 at 9:23










  • $begingroup$
    For example, if the position of your sheet of "paper" is given as two opposite points of a rectangle, you can use those to compute the parametric equations of a plane, which give you what you want; or you can compute its Cartesian equation, which immediately gives you what you want because it is of the form $a X + b Y + c Z = d$. Still, this plane must be defined somehow, because otherwise you couldn't draw it...
    $endgroup$
    – A.P.
    Aug 4 '15 at 10:09










  • $begingroup$
    Edit: Thank you for your responses and time :) If I know the global X,Y,Z coordinates of 5 points on the 2D plan where the points form two lines parallel the x,y axis of the 2D plane. For example 2D grid coordinates (10,10)(-10,0),(0,0)(10,0)(0,-10) (imagine they form a plus sign shape on the center of the grid) have known 3D coordinates can I then use that to define the plane and derive 3D coordinates from arbitrarily given 2D coordinates.
    $endgroup$
    – user1611172
    Aug 5 '15 at 4:20


















1












$begingroup$


I'm not sure this is the right place to ask this question, if not I do apologies and I will move on. I am asking this question as a programmer, however it seemed entirely maths based.



Image one is sitting still and holds in front of their face a sheet of graph paper with grid lines. This piece of paper represents a 2D plane, however although it exists inside of another 3D environment, it can be move about such that it's axis may not line up in any meaningful way.



Given 3 points where both the real world X,Y,Z values are known and the relative X,Y coordinates of their position within the paper drawn grid and given that two of these points share the same virtual 2D Y value but differ on X and the third point shares neither the same X nor Y value but does indeed exist on the same virtual 2D plane.



How can I then transform any given coordinate of one set to the other. Say I want to know where square (12,20) on the graph paper exists in the real world and vice versa.



Also, say I have a set of real world coordinates that is not on my 2D plane but directly above it. Is there a way and if so, how would i: traverse "downwards" through 3D space perpendicular to the find the 2D point directly below.










share|cite|improve this question









$endgroup$












  • $begingroup$
    How is your plane defined? You can't know what you want without some sort of description of this plane.
    $endgroup$
    – A.P.
    Aug 4 '15 at 7:44










  • $begingroup$
    Let's say I have an arena or perhaps an enclosed box. The box is 1,000cm on all sides. There is also a 100x100cm piece of paper with 1cm grid lines drawn on it. Therefor this sheet of paper represents a 2D plane that we define by the 1cm grid. This sheet of paper may be arbitraliy oriented within the box. I know of only 3 points on the box according to the criteria in the question. For example lets say the grid square (50,50)(45,60),(55,60) have known coordinates within the 3D box/arena. Is there a generlised way I can then derive the 3D coords of any given 2D coord on the sheet?
    $endgroup$
    – user1611172
    Aug 4 '15 at 8:00










  • $begingroup$
    Not unless you can tell us how the plane is given. How do you define its orientation and position in 3D space, for example?
    $endgroup$
    – A.P.
    Aug 4 '15 at 9:23










  • $begingroup$
    For example, if the position of your sheet of "paper" is given as two opposite points of a rectangle, you can use those to compute the parametric equations of a plane, which give you what you want; or you can compute its Cartesian equation, which immediately gives you what you want because it is of the form $a X + b Y + c Z = d$. Still, this plane must be defined somehow, because otherwise you couldn't draw it...
    $endgroup$
    – A.P.
    Aug 4 '15 at 10:09










  • $begingroup$
    Edit: Thank you for your responses and time :) If I know the global X,Y,Z coordinates of 5 points on the 2D plan where the points form two lines parallel the x,y axis of the 2D plane. For example 2D grid coordinates (10,10)(-10,0),(0,0)(10,0)(0,-10) (imagine they form a plus sign shape on the center of the grid) have known 3D coordinates can I then use that to define the plane and derive 3D coordinates from arbitrarily given 2D coordinates.
    $endgroup$
    – user1611172
    Aug 5 '15 at 4:20
















1












1








1





$begingroup$


I'm not sure this is the right place to ask this question, if not I do apologies and I will move on. I am asking this question as a programmer, however it seemed entirely maths based.



Image one is sitting still and holds in front of their face a sheet of graph paper with grid lines. This piece of paper represents a 2D plane, however although it exists inside of another 3D environment, it can be move about such that it's axis may not line up in any meaningful way.



Given 3 points where both the real world X,Y,Z values are known and the relative X,Y coordinates of their position within the paper drawn grid and given that two of these points share the same virtual 2D Y value but differ on X and the third point shares neither the same X nor Y value but does indeed exist on the same virtual 2D plane.



How can I then transform any given coordinate of one set to the other. Say I want to know where square (12,20) on the graph paper exists in the real world and vice versa.



Also, say I have a set of real world coordinates that is not on my 2D plane but directly above it. Is there a way and if so, how would i: traverse "downwards" through 3D space perpendicular to the find the 2D point directly below.










share|cite|improve this question









$endgroup$




I'm not sure this is the right place to ask this question, if not I do apologies and I will move on. I am asking this question as a programmer, however it seemed entirely maths based.



Image one is sitting still and holds in front of their face a sheet of graph paper with grid lines. This piece of paper represents a 2D plane, however although it exists inside of another 3D environment, it can be move about such that it's axis may not line up in any meaningful way.



Given 3 points where both the real world X,Y,Z values are known and the relative X,Y coordinates of their position within the paper drawn grid and given that two of these points share the same virtual 2D Y value but differ on X and the third point shares neither the same X nor Y value but does indeed exist on the same virtual 2D plane.



How can I then transform any given coordinate of one set to the other. Say I want to know where square (12,20) on the graph paper exists in the real world and vice versa.



Also, say I have a set of real world coordinates that is not on my 2D plane but directly above it. Is there a way and if so, how would i: traverse "downwards" through 3D space perpendicular to the find the 2D point directly below.







geometry






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Aug 4 '15 at 7:33









user1611172user1611172

63




63












  • $begingroup$
    How is your plane defined? You can't know what you want without some sort of description of this plane.
    $endgroup$
    – A.P.
    Aug 4 '15 at 7:44










  • $begingroup$
    Let's say I have an arena or perhaps an enclosed box. The box is 1,000cm on all sides. There is also a 100x100cm piece of paper with 1cm grid lines drawn on it. Therefor this sheet of paper represents a 2D plane that we define by the 1cm grid. This sheet of paper may be arbitraliy oriented within the box. I know of only 3 points on the box according to the criteria in the question. For example lets say the grid square (50,50)(45,60),(55,60) have known coordinates within the 3D box/arena. Is there a generlised way I can then derive the 3D coords of any given 2D coord on the sheet?
    $endgroup$
    – user1611172
    Aug 4 '15 at 8:00










  • $begingroup$
    Not unless you can tell us how the plane is given. How do you define its orientation and position in 3D space, for example?
    $endgroup$
    – A.P.
    Aug 4 '15 at 9:23










  • $begingroup$
    For example, if the position of your sheet of "paper" is given as two opposite points of a rectangle, you can use those to compute the parametric equations of a plane, which give you what you want; or you can compute its Cartesian equation, which immediately gives you what you want because it is of the form $a X + b Y + c Z = d$. Still, this plane must be defined somehow, because otherwise you couldn't draw it...
    $endgroup$
    – A.P.
    Aug 4 '15 at 10:09










  • $begingroup$
    Edit: Thank you for your responses and time :) If I know the global X,Y,Z coordinates of 5 points on the 2D plan where the points form two lines parallel the x,y axis of the 2D plane. For example 2D grid coordinates (10,10)(-10,0),(0,0)(10,0)(0,-10) (imagine they form a plus sign shape on the center of the grid) have known 3D coordinates can I then use that to define the plane and derive 3D coordinates from arbitrarily given 2D coordinates.
    $endgroup$
    – user1611172
    Aug 5 '15 at 4:20




















  • $begingroup$
    How is your plane defined? You can't know what you want without some sort of description of this plane.
    $endgroup$
    – A.P.
    Aug 4 '15 at 7:44










  • $begingroup$
    Let's say I have an arena or perhaps an enclosed box. The box is 1,000cm on all sides. There is also a 100x100cm piece of paper with 1cm grid lines drawn on it. Therefor this sheet of paper represents a 2D plane that we define by the 1cm grid. This sheet of paper may be arbitraliy oriented within the box. I know of only 3 points on the box according to the criteria in the question. For example lets say the grid square (50,50)(45,60),(55,60) have known coordinates within the 3D box/arena. Is there a generlised way I can then derive the 3D coords of any given 2D coord on the sheet?
    $endgroup$
    – user1611172
    Aug 4 '15 at 8:00










  • $begingroup$
    Not unless you can tell us how the plane is given. How do you define its orientation and position in 3D space, for example?
    $endgroup$
    – A.P.
    Aug 4 '15 at 9:23










  • $begingroup$
    For example, if the position of your sheet of "paper" is given as two opposite points of a rectangle, you can use those to compute the parametric equations of a plane, which give you what you want; or you can compute its Cartesian equation, which immediately gives you what you want because it is of the form $a X + b Y + c Z = d$. Still, this plane must be defined somehow, because otherwise you couldn't draw it...
    $endgroup$
    – A.P.
    Aug 4 '15 at 10:09










  • $begingroup$
    Edit: Thank you for your responses and time :) If I know the global X,Y,Z coordinates of 5 points on the 2D plan where the points form two lines parallel the x,y axis of the 2D plane. For example 2D grid coordinates (10,10)(-10,0),(0,0)(10,0)(0,-10) (imagine they form a plus sign shape on the center of the grid) have known 3D coordinates can I then use that to define the plane and derive 3D coordinates from arbitrarily given 2D coordinates.
    $endgroup$
    – user1611172
    Aug 5 '15 at 4:20


















$begingroup$
How is your plane defined? You can't know what you want without some sort of description of this plane.
$endgroup$
– A.P.
Aug 4 '15 at 7:44




$begingroup$
How is your plane defined? You can't know what you want without some sort of description of this plane.
$endgroup$
– A.P.
Aug 4 '15 at 7:44












$begingroup$
Let's say I have an arena or perhaps an enclosed box. The box is 1,000cm on all sides. There is also a 100x100cm piece of paper with 1cm grid lines drawn on it. Therefor this sheet of paper represents a 2D plane that we define by the 1cm grid. This sheet of paper may be arbitraliy oriented within the box. I know of only 3 points on the box according to the criteria in the question. For example lets say the grid square (50,50)(45,60),(55,60) have known coordinates within the 3D box/arena. Is there a generlised way I can then derive the 3D coords of any given 2D coord on the sheet?
$endgroup$
– user1611172
Aug 4 '15 at 8:00




$begingroup$
Let's say I have an arena or perhaps an enclosed box. The box is 1,000cm on all sides. There is also a 100x100cm piece of paper with 1cm grid lines drawn on it. Therefor this sheet of paper represents a 2D plane that we define by the 1cm grid. This sheet of paper may be arbitraliy oriented within the box. I know of only 3 points on the box according to the criteria in the question. For example lets say the grid square (50,50)(45,60),(55,60) have known coordinates within the 3D box/arena. Is there a generlised way I can then derive the 3D coords of any given 2D coord on the sheet?
$endgroup$
– user1611172
Aug 4 '15 at 8:00












$begingroup$
Not unless you can tell us how the plane is given. How do you define its orientation and position in 3D space, for example?
$endgroup$
– A.P.
Aug 4 '15 at 9:23




$begingroup$
Not unless you can tell us how the plane is given. How do you define its orientation and position in 3D space, for example?
$endgroup$
– A.P.
Aug 4 '15 at 9:23












$begingroup$
For example, if the position of your sheet of "paper" is given as two opposite points of a rectangle, you can use those to compute the parametric equations of a plane, which give you what you want; or you can compute its Cartesian equation, which immediately gives you what you want because it is of the form $a X + b Y + c Z = d$. Still, this plane must be defined somehow, because otherwise you couldn't draw it...
$endgroup$
– A.P.
Aug 4 '15 at 10:09




$begingroup$
For example, if the position of your sheet of "paper" is given as two opposite points of a rectangle, you can use those to compute the parametric equations of a plane, which give you what you want; or you can compute its Cartesian equation, which immediately gives you what you want because it is of the form $a X + b Y + c Z = d$. Still, this plane must be defined somehow, because otherwise you couldn't draw it...
$endgroup$
– A.P.
Aug 4 '15 at 10:09












$begingroup$
Edit: Thank you for your responses and time :) If I know the global X,Y,Z coordinates of 5 points on the 2D plan where the points form two lines parallel the x,y axis of the 2D plane. For example 2D grid coordinates (10,10)(-10,0),(0,0)(10,0)(0,-10) (imagine they form a plus sign shape on the center of the grid) have known 3D coordinates can I then use that to define the plane and derive 3D coordinates from arbitrarily given 2D coordinates.
$endgroup$
– user1611172
Aug 5 '15 at 4:20






$begingroup$
Edit: Thank you for your responses and time :) If I know the global X,Y,Z coordinates of 5 points on the 2D plan where the points form two lines parallel the x,y axis of the 2D plane. For example 2D grid coordinates (10,10)(-10,0),(0,0)(10,0)(0,-10) (imagine they form a plus sign shape on the center of the grid) have known 3D coordinates can I then use that to define the plane and derive 3D coordinates from arbitrarily given 2D coordinates.
$endgroup$
– user1611172
Aug 5 '15 at 4:20












1 Answer
1






active

oldest

votes


















0












$begingroup$

For simplicity, suppose you know the coordinates in 3D space $(x_1,y_1,z_1)$ and $(x_2,y_2,z_2)$ of (the image of) $(1,0)$ and $(0,1)$, respectively. Then every point $(a,b)$ in 2D space can be written as
$$
(a,b) = a(1,0) + b(0,1)
$$
and the corresponding point in 3D space has coordinates
$$
a(x_1,y_1,z_1) + b(x_2,y_2,z_2) = (ax_1 + bx_2, ay_1 + b y_2, az_2 + bz_2)
$$
If instead you know the 3D coordinates of, say, $(10,0)$ and $(0,10)$, then you can use the same trick after writing
$$
(a,b) = frac{a}{10}(10,0) + frac{b}{10}(0,10)
$$






share|cite|improve this answer









$endgroup$














    Your Answer





    StackExchange.ifUsing("editor", function () {
    return StackExchange.using("mathjaxEditing", function () {
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    });
    });
    }, "mathjax-editing");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "69"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1383839%2ffind-coordinates-of-a-2d-plane-within-a-3d-plane%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0












    $begingroup$

    For simplicity, suppose you know the coordinates in 3D space $(x_1,y_1,z_1)$ and $(x_2,y_2,z_2)$ of (the image of) $(1,0)$ and $(0,1)$, respectively. Then every point $(a,b)$ in 2D space can be written as
    $$
    (a,b) = a(1,0) + b(0,1)
    $$
    and the corresponding point in 3D space has coordinates
    $$
    a(x_1,y_1,z_1) + b(x_2,y_2,z_2) = (ax_1 + bx_2, ay_1 + b y_2, az_2 + bz_2)
    $$
    If instead you know the 3D coordinates of, say, $(10,0)$ and $(0,10)$, then you can use the same trick after writing
    $$
    (a,b) = frac{a}{10}(10,0) + frac{b}{10}(0,10)
    $$






    share|cite|improve this answer









    $endgroup$


















      0












      $begingroup$

      For simplicity, suppose you know the coordinates in 3D space $(x_1,y_1,z_1)$ and $(x_2,y_2,z_2)$ of (the image of) $(1,0)$ and $(0,1)$, respectively. Then every point $(a,b)$ in 2D space can be written as
      $$
      (a,b) = a(1,0) + b(0,1)
      $$
      and the corresponding point in 3D space has coordinates
      $$
      a(x_1,y_1,z_1) + b(x_2,y_2,z_2) = (ax_1 + bx_2, ay_1 + b y_2, az_2 + bz_2)
      $$
      If instead you know the 3D coordinates of, say, $(10,0)$ and $(0,10)$, then you can use the same trick after writing
      $$
      (a,b) = frac{a}{10}(10,0) + frac{b}{10}(0,10)
      $$






      share|cite|improve this answer









      $endgroup$
















        0












        0








        0





        $begingroup$

        For simplicity, suppose you know the coordinates in 3D space $(x_1,y_1,z_1)$ and $(x_2,y_2,z_2)$ of (the image of) $(1,0)$ and $(0,1)$, respectively. Then every point $(a,b)$ in 2D space can be written as
        $$
        (a,b) = a(1,0) + b(0,1)
        $$
        and the corresponding point in 3D space has coordinates
        $$
        a(x_1,y_1,z_1) + b(x_2,y_2,z_2) = (ax_1 + bx_2, ay_1 + b y_2, az_2 + bz_2)
        $$
        If instead you know the 3D coordinates of, say, $(10,0)$ and $(0,10)$, then you can use the same trick after writing
        $$
        (a,b) = frac{a}{10}(10,0) + frac{b}{10}(0,10)
        $$






        share|cite|improve this answer









        $endgroup$



        For simplicity, suppose you know the coordinates in 3D space $(x_1,y_1,z_1)$ and $(x_2,y_2,z_2)$ of (the image of) $(1,0)$ and $(0,1)$, respectively. Then every point $(a,b)$ in 2D space can be written as
        $$
        (a,b) = a(1,0) + b(0,1)
        $$
        and the corresponding point in 3D space has coordinates
        $$
        a(x_1,y_1,z_1) + b(x_2,y_2,z_2) = (ax_1 + bx_2, ay_1 + b y_2, az_2 + bz_2)
        $$
        If instead you know the 3D coordinates of, say, $(10,0)$ and $(0,10)$, then you can use the same trick after writing
        $$
        (a,b) = frac{a}{10}(10,0) + frac{b}{10}(0,10)
        $$







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Aug 5 '15 at 8:33









        A.P.A.P.

        8,18021840




        8,18021840






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematics Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1383839%2ffind-coordinates-of-a-2d-plane-within-a-3d-plane%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            MongoDB - Not Authorized To Execute Command

            How to fix TextFormField cause rebuild widget in Flutter

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith