What algorithm can I use to find this ellipse inscribed in a quadrilateral?
$begingroup$
There's a certain drawing exercise designed to improve a drawing student's understanding of perspective and ability to draw shapes freehand. (The actual exercise is described by Irshad Karim on Drawabox.com, on the pages "Ghosted Planes" and "Ellipses in Planes".)
The exercise consists of drawing a convex quadrilateral, then drawing a window-like structure inside the quadrilateral, and finally drawing the ellipse implied by this structure.
Ideally, the result will look similar to this diagram:
The exact steps of the exercise are:
- Draw any convex quadrilateral $ABCD$.
- Draw the diagonals of the quadrilateral; call their intersection point $E$.
- Draw a line segment passing through $E$, which is concurrent to the edges $AD$ and $BC$. (Line segments are concurrent if they are all parallel, or if, when they are extended to lines, the resulting lines all intersect at a single point.) One endpoint should lie on $AB$, and be labeled $F$; the other endpoint should lie on $CD$, and be labeled $G$.
- Likewise, draw a line segment passing through $E$, which is concurrent to the edges $AB$ and $CD$. One endpoint lies on $AD$ and is labeled $H$, the other lies on $BC$ and is labeled $J$.
- Finally, draw the unique ellipse which is tangent to $ABCD$ at $F$, $G$, $H$, and $J$.
Given the coordinates of $A$, $B$, $C$ and $D$, what algorithm can be used to find the resulting ellipse?
I'm not 100% sure that there is always a unique ellipse tangent to $ABCD$ at $F$, $G$, $H$ and $J$, but it definitely seems like there is. There's always a unique ellipse which is tangent at $F$ and which passes through $G$, $H$, and $J$; and from experimentation, it looks like this ellipse is always tangent at $G$, $H$ and $J$ as well.
In the case where $ABCD$ is a square, everything is especially simple. The resulting ellipse is the circle inscribed in the square. I suspect that every case is simply the image of this case under some type of perspective transformation which preserves ellipses. But I don't know how to prove this, or how to make use of this fact.
geometry
$endgroup$
add a comment |
$begingroup$
There's a certain drawing exercise designed to improve a drawing student's understanding of perspective and ability to draw shapes freehand. (The actual exercise is described by Irshad Karim on Drawabox.com, on the pages "Ghosted Planes" and "Ellipses in Planes".)
The exercise consists of drawing a convex quadrilateral, then drawing a window-like structure inside the quadrilateral, and finally drawing the ellipse implied by this structure.
Ideally, the result will look similar to this diagram:
The exact steps of the exercise are:
- Draw any convex quadrilateral $ABCD$.
- Draw the diagonals of the quadrilateral; call their intersection point $E$.
- Draw a line segment passing through $E$, which is concurrent to the edges $AD$ and $BC$. (Line segments are concurrent if they are all parallel, or if, when they are extended to lines, the resulting lines all intersect at a single point.) One endpoint should lie on $AB$, and be labeled $F$; the other endpoint should lie on $CD$, and be labeled $G$.
- Likewise, draw a line segment passing through $E$, which is concurrent to the edges $AB$ and $CD$. One endpoint lies on $AD$ and is labeled $H$, the other lies on $BC$ and is labeled $J$.
- Finally, draw the unique ellipse which is tangent to $ABCD$ at $F$, $G$, $H$, and $J$.
Given the coordinates of $A$, $B$, $C$ and $D$, what algorithm can be used to find the resulting ellipse?
I'm not 100% sure that there is always a unique ellipse tangent to $ABCD$ at $F$, $G$, $H$ and $J$, but it definitely seems like there is. There's always a unique ellipse which is tangent at $F$ and which passes through $G$, $H$, and $J$; and from experimentation, it looks like this ellipse is always tangent at $G$, $H$ and $J$ as well.
In the case where $ABCD$ is a square, everything is especially simple. The resulting ellipse is the circle inscribed in the square. I suspect that every case is simply the image of this case under some type of perspective transformation which preserves ellipses. But I don't know how to prove this, or how to make use of this fact.
geometry
$endgroup$
$begingroup$
Interesting question, although I think the point of the original freehand-drawing exercise is not to use an algorithm.
$endgroup$
– David K
Jan 9 at 13:16
add a comment |
$begingroup$
There's a certain drawing exercise designed to improve a drawing student's understanding of perspective and ability to draw shapes freehand. (The actual exercise is described by Irshad Karim on Drawabox.com, on the pages "Ghosted Planes" and "Ellipses in Planes".)
The exercise consists of drawing a convex quadrilateral, then drawing a window-like structure inside the quadrilateral, and finally drawing the ellipse implied by this structure.
Ideally, the result will look similar to this diagram:
The exact steps of the exercise are:
- Draw any convex quadrilateral $ABCD$.
- Draw the diagonals of the quadrilateral; call their intersection point $E$.
- Draw a line segment passing through $E$, which is concurrent to the edges $AD$ and $BC$. (Line segments are concurrent if they are all parallel, or if, when they are extended to lines, the resulting lines all intersect at a single point.) One endpoint should lie on $AB$, and be labeled $F$; the other endpoint should lie on $CD$, and be labeled $G$.
- Likewise, draw a line segment passing through $E$, which is concurrent to the edges $AB$ and $CD$. One endpoint lies on $AD$ and is labeled $H$, the other lies on $BC$ and is labeled $J$.
- Finally, draw the unique ellipse which is tangent to $ABCD$ at $F$, $G$, $H$, and $J$.
Given the coordinates of $A$, $B$, $C$ and $D$, what algorithm can be used to find the resulting ellipse?
I'm not 100% sure that there is always a unique ellipse tangent to $ABCD$ at $F$, $G$, $H$ and $J$, but it definitely seems like there is. There's always a unique ellipse which is tangent at $F$ and which passes through $G$, $H$, and $J$; and from experimentation, it looks like this ellipse is always tangent at $G$, $H$ and $J$ as well.
In the case where $ABCD$ is a square, everything is especially simple. The resulting ellipse is the circle inscribed in the square. I suspect that every case is simply the image of this case under some type of perspective transformation which preserves ellipses. But I don't know how to prove this, or how to make use of this fact.
geometry
$endgroup$
There's a certain drawing exercise designed to improve a drawing student's understanding of perspective and ability to draw shapes freehand. (The actual exercise is described by Irshad Karim on Drawabox.com, on the pages "Ghosted Planes" and "Ellipses in Planes".)
The exercise consists of drawing a convex quadrilateral, then drawing a window-like structure inside the quadrilateral, and finally drawing the ellipse implied by this structure.
Ideally, the result will look similar to this diagram:
The exact steps of the exercise are:
- Draw any convex quadrilateral $ABCD$.
- Draw the diagonals of the quadrilateral; call their intersection point $E$.
- Draw a line segment passing through $E$, which is concurrent to the edges $AD$ and $BC$. (Line segments are concurrent if they are all parallel, or if, when they are extended to lines, the resulting lines all intersect at a single point.) One endpoint should lie on $AB$, and be labeled $F$; the other endpoint should lie on $CD$, and be labeled $G$.
- Likewise, draw a line segment passing through $E$, which is concurrent to the edges $AB$ and $CD$. One endpoint lies on $AD$ and is labeled $H$, the other lies on $BC$ and is labeled $J$.
- Finally, draw the unique ellipse which is tangent to $ABCD$ at $F$, $G$, $H$, and $J$.
Given the coordinates of $A$, $B$, $C$ and $D$, what algorithm can be used to find the resulting ellipse?
I'm not 100% sure that there is always a unique ellipse tangent to $ABCD$ at $F$, $G$, $H$ and $J$, but it definitely seems like there is. There's always a unique ellipse which is tangent at $F$ and which passes through $G$, $H$, and $J$; and from experimentation, it looks like this ellipse is always tangent at $G$, $H$ and $J$ as well.
In the case where $ABCD$ is a square, everything is especially simple. The resulting ellipse is the circle inscribed in the square. I suspect that every case is simply the image of this case under some type of perspective transformation which preserves ellipses. But I don't know how to prove this, or how to make use of this fact.
geometry
geometry
asked Jan 9 at 3:40
Tanner SwettTanner Swett
4,2241639
4,2241639
$begingroup$
Interesting question, although I think the point of the original freehand-drawing exercise is not to use an algorithm.
$endgroup$
– David K
Jan 9 at 13:16
add a comment |
$begingroup$
Interesting question, although I think the point of the original freehand-drawing exercise is not to use an algorithm.
$endgroup$
– David K
Jan 9 at 13:16
$begingroup$
Interesting question, although I think the point of the original freehand-drawing exercise is not to use an algorithm.
$endgroup$
– David K
Jan 9 at 13:16
$begingroup$
Interesting question, although I think the point of the original freehand-drawing exercise is not to use an algorithm.
$endgroup$
– David K
Jan 9 at 13:16
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
There is a projective transformation that takes the quadrilateral to a square. Draw a circle inscribed in the square, transform back and you get an ellipse inscribed in the quadrilateral.
The answers to this question describe how to find a projective transformation which takes the quadrilateral to a square: Mapping Irregular Quadrilateral to a Rectangle
$endgroup$
$begingroup$
This is the help that I needed, thank you! I went ahead and edited your answer by adding a link to another question with more information; please feel free to revert my edit.
$endgroup$
– Tanner Swett
Jan 9 at 4:06
$begingroup$
@TannerSwett I find this answer the best of the descriptions of how to construct the required homography.
$endgroup$
– amd
Jan 9 at 5:28
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3067046%2fwhat-algorithm-can-i-use-to-find-this-ellipse-inscribed-in-a-quadrilateral%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
$begingroup$
There is a projective transformation that takes the quadrilateral to a square. Draw a circle inscribed in the square, transform back and you get an ellipse inscribed in the quadrilateral.
The answers to this question describe how to find a projective transformation which takes the quadrilateral to a square: Mapping Irregular Quadrilateral to a Rectangle
$endgroup$
$begingroup$
This is the help that I needed, thank you! I went ahead and edited your answer by adding a link to another question with more information; please feel free to revert my edit.
$endgroup$
– Tanner Swett
Jan 9 at 4:06
$begingroup$
@TannerSwett I find this answer the best of the descriptions of how to construct the required homography.
$endgroup$
– amd
Jan 9 at 5:28
add a comment |
$begingroup$
There is a projective transformation that takes the quadrilateral to a square. Draw a circle inscribed in the square, transform back and you get an ellipse inscribed in the quadrilateral.
The answers to this question describe how to find a projective transformation which takes the quadrilateral to a square: Mapping Irregular Quadrilateral to a Rectangle
$endgroup$
$begingroup$
This is the help that I needed, thank you! I went ahead and edited your answer by adding a link to another question with more information; please feel free to revert my edit.
$endgroup$
– Tanner Swett
Jan 9 at 4:06
$begingroup$
@TannerSwett I find this answer the best of the descriptions of how to construct the required homography.
$endgroup$
– amd
Jan 9 at 5:28
add a comment |
$begingroup$
There is a projective transformation that takes the quadrilateral to a square. Draw a circle inscribed in the square, transform back and you get an ellipse inscribed in the quadrilateral.
The answers to this question describe how to find a projective transformation which takes the quadrilateral to a square: Mapping Irregular Quadrilateral to a Rectangle
$endgroup$
There is a projective transformation that takes the quadrilateral to a square. Draw a circle inscribed in the square, transform back and you get an ellipse inscribed in the quadrilateral.
The answers to this question describe how to find a projective transformation which takes the quadrilateral to a square: Mapping Irregular Quadrilateral to a Rectangle
edited Jan 9 at 4:04
Tanner Swett
4,2241639
4,2241639
answered Jan 9 at 3:57
Robert IsraelRobert Israel
320k23209459
320k23209459
$begingroup$
This is the help that I needed, thank you! I went ahead and edited your answer by adding a link to another question with more information; please feel free to revert my edit.
$endgroup$
– Tanner Swett
Jan 9 at 4:06
$begingroup$
@TannerSwett I find this answer the best of the descriptions of how to construct the required homography.
$endgroup$
– amd
Jan 9 at 5:28
add a comment |
$begingroup$
This is the help that I needed, thank you! I went ahead and edited your answer by adding a link to another question with more information; please feel free to revert my edit.
$endgroup$
– Tanner Swett
Jan 9 at 4:06
$begingroup$
@TannerSwett I find this answer the best of the descriptions of how to construct the required homography.
$endgroup$
– amd
Jan 9 at 5:28
$begingroup$
This is the help that I needed, thank you! I went ahead and edited your answer by adding a link to another question with more information; please feel free to revert my edit.
$endgroup$
– Tanner Swett
Jan 9 at 4:06
$begingroup$
This is the help that I needed, thank you! I went ahead and edited your answer by adding a link to another question with more information; please feel free to revert my edit.
$endgroup$
– Tanner Swett
Jan 9 at 4:06
$begingroup$
@TannerSwett I find this answer the best of the descriptions of how to construct the required homography.
$endgroup$
– amd
Jan 9 at 5:28
$begingroup$
@TannerSwett I find this answer the best of the descriptions of how to construct the required homography.
$endgroup$
– amd
Jan 9 at 5:28
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3067046%2fwhat-algorithm-can-i-use-to-find-this-ellipse-inscribed-in-a-quadrilateral%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
$begingroup$
Interesting question, although I think the point of the original freehand-drawing exercise is not to use an algorithm.
$endgroup$
– David K
Jan 9 at 13:16