How to find corners of square from it's center point? The 2019 Stack Overflow Developer Survey Results Are InFind the position of a beacon using lat/lng/signal strength datapoint lying inside a squarePoint P(x,y) inside a square, differences of distances to corners knownDetermine Center Point based on 2 separate elipsesCalculating top-left point from center point and mouse pointer locationGiven a point on a sphere, how do I find the angles needed to 'point' at it's center?Find distance from point to line using trigonometryHow to compute the intercept of a square with a line given by two points?Find all points within the locus of a line segmentGiven the coordinates of a box, how can I find the coordinates of a box that is X% bigger than the original box
Unbreakable Formation vs. Cry of the Carnarium
What is the meaning of Triage in Cybersec world?
What is a mixture ratio of propellant?
"To split hairs" vs "To be pedantic"
How to answer pointed "are you quitting" questioning when I don't want them to suspect
What is the motivation for a law requiring 2 parties to consent for recording a conversation
Lethal sonic weapons
Inflated grade on resume at previous job, might former employer tell new employer?
A poker game description that does not feel gimmicky
What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?
Is it possible for the two major parties in the UK to form a coalition with each other instead of a much smaller party?
What are the motivations for publishing new editions of an existing textbook, beyond new discoveries in a field?
Why do UK politicians seemingly ignore opinion polls on Brexit?
Could JWST stay at L2 "forever"?
If a poisoned arrow's piercing damage is reduced to 0, do you still get poisoned?
Is three citations per paragraph excessive for undergraduate research paper?
Are there any other methods to apply to solving simultaneous equations?
What does "sndry explns" mean in one of the Hitchhiker's guide books?
Springs with some finite mass
Is bread bad for ducks?
What does "rabbited" mean/imply in this sentence?
Where does the "burst of radiance" from Holy Weapon originate?
What is the steepest angle that a canal can be traversable without locks?
JSON.serialize: is it possible to suppress null values of a map?
How to find corners of square from it's center point?
The 2019 Stack Overflow Developer Survey Results Are InFind the position of a beacon using lat/lng/signal strength datapoint lying inside a squarePoint P(x,y) inside a square, differences of distances to corners knownDetermine Center Point based on 2 separate elipsesCalculating top-left point from center point and mouse pointer locationGiven a point on a sphere, how do I find the angles needed to 'point' at it's center?Find distance from point to line using trigonometryHow to compute the intercept of a square with a line given by two points?Find all points within the locus of a line segmentGiven the coordinates of a box, how can I find the coordinates of a box that is X% bigger than the original box
$begingroup$
It's has been a while since I used any basic trigonometry, so I'm here requesting some aiding. I have the center point of a square (as lng/lat pair which I believe I can use as x/y) and the side length, and I need to find all 4 corners coordinates from this origin.
How can I achieve this please?
geometry trigonometry
$endgroup$
add a comment |
$begingroup$
It's has been a while since I used any basic trigonometry, so I'm here requesting some aiding. I have the center point of a square (as lng/lat pair which I believe I can use as x/y) and the side length, and I need to find all 4 corners coordinates from this origin.
How can I achieve this please?
geometry trigonometry
$endgroup$
$begingroup$
Does the square require an orientation? The simplest answer is simply the four points (+/- 1/2 length +/- x, +/- 1/2 length +/- y)
$endgroup$
– fleablood
Oct 21 '15 at 3:11
$begingroup$
It doesn't require any orientation. It should be as simple as possible. Could you please elaborate you simplest answer? I am not that good with math...
$endgroup$
– dambros
Oct 21 '15 at 3:14
add a comment |
$begingroup$
It's has been a while since I used any basic trigonometry, so I'm here requesting some aiding. I have the center point of a square (as lng/lat pair which I believe I can use as x/y) and the side length, and I need to find all 4 corners coordinates from this origin.
How can I achieve this please?
geometry trigonometry
$endgroup$
It's has been a while since I used any basic trigonometry, so I'm here requesting some aiding. I have the center point of a square (as lng/lat pair which I believe I can use as x/y) and the side length, and I need to find all 4 corners coordinates from this origin.
How can I achieve this please?
geometry trigonometry
geometry trigonometry
edited Oct 21 '15 at 3:04
dambros
asked Oct 21 '15 at 2:55
dambrosdambros
11814
11814
$begingroup$
Does the square require an orientation? The simplest answer is simply the four points (+/- 1/2 length +/- x, +/- 1/2 length +/- y)
$endgroup$
– fleablood
Oct 21 '15 at 3:11
$begingroup$
It doesn't require any orientation. It should be as simple as possible. Could you please elaborate you simplest answer? I am not that good with math...
$endgroup$
– dambros
Oct 21 '15 at 3:14
add a comment |
$begingroup$
Does the square require an orientation? The simplest answer is simply the four points (+/- 1/2 length +/- x, +/- 1/2 length +/- y)
$endgroup$
– fleablood
Oct 21 '15 at 3:11
$begingroup$
It doesn't require any orientation. It should be as simple as possible. Could you please elaborate you simplest answer? I am not that good with math...
$endgroup$
– dambros
Oct 21 '15 at 3:14
$begingroup$
Does the square require an orientation? The simplest answer is simply the four points (+/- 1/2 length +/- x, +/- 1/2 length +/- y)
$endgroup$
– fleablood
Oct 21 '15 at 3:11
$begingroup$
Does the square require an orientation? The simplest answer is simply the four points (+/- 1/2 length +/- x, +/- 1/2 length +/- y)
$endgroup$
– fleablood
Oct 21 '15 at 3:11
$begingroup$
It doesn't require any orientation. It should be as simple as possible. Could you please elaborate you simplest answer? I am not that good with math...
$endgroup$
– dambros
Oct 21 '15 at 3:14
$begingroup$
It doesn't require any orientation. It should be as simple as possible. Could you please elaborate you simplest answer? I am not that good with math...
$endgroup$
– dambros
Oct 21 '15 at 3:14
add a comment |
3 Answers
3
active
oldest
votes
$begingroup$
Assuming the length of the square is L, I hope the drawing below answers your question. I called the center point c, and each corner p1,p2,p3 and p4.
$endgroup$
$begingroup$
Nice drawing...
$endgroup$
– fleablood
Oct 21 '15 at 3:30
$begingroup$
Thanks for the input, even I could follow it. One more question, is there a way I can correctly convert lng/lat to x/y?
$endgroup$
– dambros
Oct 21 '15 at 4:01
$begingroup$
@dambros, sorry I don't know about this.
$endgroup$
– NoChance
Oct 21 '15 at 4:04
$begingroup$
@fleablood, thx.
$endgroup$
– NoChance
Oct 21 '15 at 4:04
add a comment |
$begingroup$
Let L = length of side. Let (h,k) be the center point.
The simplest answer is $(h + frac 1 2 L, k + frac 1 2 L), (h + frac 1 2 L, k - frac 1 2 L),(h - frac 1 2 L, k - frac 1 2 L), (h - frac 1 2 L, k + frac 1 2 L)$
If the square must be rotated by the angle $theta$, The the solutions are $(h + frac 1 2 L sin theta, k + frac 1 2 L cos theta), (h - frac 1 2 L cos theta, k + frac 1 2 L sin theta),(h - frac 1 2 L sin theta, k - frac 1 2 L cos theta), (h + frac 1 2 L cos theta, k - frac 1 2 L sin theta)$
$endgroup$
add a comment |
$begingroup$
In case the square is rotated around the center by an angle theta, w.r.t the ground position (considered as when the sides are parallel to the x and y axis), the vertices are given as -
Let L = length of the side. Let (h,k) be the center point.
$(h - frac12L(sintheta + costheta), k - frac12L(sintheta - costheta)$,
$(h + frac12L(sintheta - costheta), k - frac12L(sintheta + costheta)$,
$(h + frac12L(sintheta + costheta), k + frac12L(sintheta - costheta)$,
$(h - frac12L(sintheta - costheta), k + frac12L(sintheta + costheta)$
Please beware, the answer provided by @fleablood seems to be wrong. Didn't work out for me. It fails in the very basic case of $theta=0$ and $theta=90$ or I'm misinterpreting the answer provided.
$endgroup$
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%2f1490115%2fhow-to-find-corners-of-square-from-its-center-point%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Assuming the length of the square is L, I hope the drawing below answers your question. I called the center point c, and each corner p1,p2,p3 and p4.
$endgroup$
$begingroup$
Nice drawing...
$endgroup$
– fleablood
Oct 21 '15 at 3:30
$begingroup$
Thanks for the input, even I could follow it. One more question, is there a way I can correctly convert lng/lat to x/y?
$endgroup$
– dambros
Oct 21 '15 at 4:01
$begingroup$
@dambros, sorry I don't know about this.
$endgroup$
– NoChance
Oct 21 '15 at 4:04
$begingroup$
@fleablood, thx.
$endgroup$
– NoChance
Oct 21 '15 at 4:04
add a comment |
$begingroup$
Assuming the length of the square is L, I hope the drawing below answers your question. I called the center point c, and each corner p1,p2,p3 and p4.
$endgroup$
$begingroup$
Nice drawing...
$endgroup$
– fleablood
Oct 21 '15 at 3:30
$begingroup$
Thanks for the input, even I could follow it. One more question, is there a way I can correctly convert lng/lat to x/y?
$endgroup$
– dambros
Oct 21 '15 at 4:01
$begingroup$
@dambros, sorry I don't know about this.
$endgroup$
– NoChance
Oct 21 '15 at 4:04
$begingroup$
@fleablood, thx.
$endgroup$
– NoChance
Oct 21 '15 at 4:04
add a comment |
$begingroup$
Assuming the length of the square is L, I hope the drawing below answers your question. I called the center point c, and each corner p1,p2,p3 and p4.
$endgroup$
Assuming the length of the square is L, I hope the drawing below answers your question. I called the center point c, and each corner p1,p2,p3 and p4.
answered Oct 21 '15 at 3:26
NoChanceNoChance
3,76621321
3,76621321
$begingroup$
Nice drawing...
$endgroup$
– fleablood
Oct 21 '15 at 3:30
$begingroup$
Thanks for the input, even I could follow it. One more question, is there a way I can correctly convert lng/lat to x/y?
$endgroup$
– dambros
Oct 21 '15 at 4:01
$begingroup$
@dambros, sorry I don't know about this.
$endgroup$
– NoChance
Oct 21 '15 at 4:04
$begingroup$
@fleablood, thx.
$endgroup$
– NoChance
Oct 21 '15 at 4:04
add a comment |
$begingroup$
Nice drawing...
$endgroup$
– fleablood
Oct 21 '15 at 3:30
$begingroup$
Thanks for the input, even I could follow it. One more question, is there a way I can correctly convert lng/lat to x/y?
$endgroup$
– dambros
Oct 21 '15 at 4:01
$begingroup$
@dambros, sorry I don't know about this.
$endgroup$
– NoChance
Oct 21 '15 at 4:04
$begingroup$
@fleablood, thx.
$endgroup$
– NoChance
Oct 21 '15 at 4:04
$begingroup$
Nice drawing...
$endgroup$
– fleablood
Oct 21 '15 at 3:30
$begingroup$
Nice drawing...
$endgroup$
– fleablood
Oct 21 '15 at 3:30
$begingroup$
Thanks for the input, even I could follow it. One more question, is there a way I can correctly convert lng/lat to x/y?
$endgroup$
– dambros
Oct 21 '15 at 4:01
$begingroup$
Thanks for the input, even I could follow it. One more question, is there a way I can correctly convert lng/lat to x/y?
$endgroup$
– dambros
Oct 21 '15 at 4:01
$begingroup$
@dambros, sorry I don't know about this.
$endgroup$
– NoChance
Oct 21 '15 at 4:04
$begingroup$
@dambros, sorry I don't know about this.
$endgroup$
– NoChance
Oct 21 '15 at 4:04
$begingroup$
@fleablood, thx.
$endgroup$
– NoChance
Oct 21 '15 at 4:04
$begingroup$
@fleablood, thx.
$endgroup$
– NoChance
Oct 21 '15 at 4:04
add a comment |
$begingroup$
Let L = length of side. Let (h,k) be the center point.
The simplest answer is $(h + frac 1 2 L, k + frac 1 2 L), (h + frac 1 2 L, k - frac 1 2 L),(h - frac 1 2 L, k - frac 1 2 L), (h - frac 1 2 L, k + frac 1 2 L)$
If the square must be rotated by the angle $theta$, The the solutions are $(h + frac 1 2 L sin theta, k + frac 1 2 L cos theta), (h - frac 1 2 L cos theta, k + frac 1 2 L sin theta),(h - frac 1 2 L sin theta, k - frac 1 2 L cos theta), (h + frac 1 2 L cos theta, k - frac 1 2 L sin theta)$
$endgroup$
add a comment |
$begingroup$
Let L = length of side. Let (h,k) be the center point.
The simplest answer is $(h + frac 1 2 L, k + frac 1 2 L), (h + frac 1 2 L, k - frac 1 2 L),(h - frac 1 2 L, k - frac 1 2 L), (h - frac 1 2 L, k + frac 1 2 L)$
If the square must be rotated by the angle $theta$, The the solutions are $(h + frac 1 2 L sin theta, k + frac 1 2 L cos theta), (h - frac 1 2 L cos theta, k + frac 1 2 L sin theta),(h - frac 1 2 L sin theta, k - frac 1 2 L cos theta), (h + frac 1 2 L cos theta, k - frac 1 2 L sin theta)$
$endgroup$
add a comment |
$begingroup$
Let L = length of side. Let (h,k) be the center point.
The simplest answer is $(h + frac 1 2 L, k + frac 1 2 L), (h + frac 1 2 L, k - frac 1 2 L),(h - frac 1 2 L, k - frac 1 2 L), (h - frac 1 2 L, k + frac 1 2 L)$
If the square must be rotated by the angle $theta$, The the solutions are $(h + frac 1 2 L sin theta, k + frac 1 2 L cos theta), (h - frac 1 2 L cos theta, k + frac 1 2 L sin theta),(h - frac 1 2 L sin theta, k - frac 1 2 L cos theta), (h + frac 1 2 L cos theta, k - frac 1 2 L sin theta)$
$endgroup$
Let L = length of side. Let (h,k) be the center point.
The simplest answer is $(h + frac 1 2 L, k + frac 1 2 L), (h + frac 1 2 L, k - frac 1 2 L),(h - frac 1 2 L, k - frac 1 2 L), (h - frac 1 2 L, k + frac 1 2 L)$
If the square must be rotated by the angle $theta$, The the solutions are $(h + frac 1 2 L sin theta, k + frac 1 2 L cos theta), (h - frac 1 2 L cos theta, k + frac 1 2 L sin theta),(h - frac 1 2 L sin theta, k - frac 1 2 L cos theta), (h + frac 1 2 L cos theta, k - frac 1 2 L sin theta)$
answered Oct 21 '15 at 3:29
fleabloodfleablood
73.9k22891
73.9k22891
add a comment |
add a comment |
$begingroup$
In case the square is rotated around the center by an angle theta, w.r.t the ground position (considered as when the sides are parallel to the x and y axis), the vertices are given as -
Let L = length of the side. Let (h,k) be the center point.
$(h - frac12L(sintheta + costheta), k - frac12L(sintheta - costheta)$,
$(h + frac12L(sintheta - costheta), k - frac12L(sintheta + costheta)$,
$(h + frac12L(sintheta + costheta), k + frac12L(sintheta - costheta)$,
$(h - frac12L(sintheta - costheta), k + frac12L(sintheta + costheta)$
Please beware, the answer provided by @fleablood seems to be wrong. Didn't work out for me. It fails in the very basic case of $theta=0$ and $theta=90$ or I'm misinterpreting the answer provided.
$endgroup$
add a comment |
$begingroup$
In case the square is rotated around the center by an angle theta, w.r.t the ground position (considered as when the sides are parallel to the x and y axis), the vertices are given as -
Let L = length of the side. Let (h,k) be the center point.
$(h - frac12L(sintheta + costheta), k - frac12L(sintheta - costheta)$,
$(h + frac12L(sintheta - costheta), k - frac12L(sintheta + costheta)$,
$(h + frac12L(sintheta + costheta), k + frac12L(sintheta - costheta)$,
$(h - frac12L(sintheta - costheta), k + frac12L(sintheta + costheta)$
Please beware, the answer provided by @fleablood seems to be wrong. Didn't work out for me. It fails in the very basic case of $theta=0$ and $theta=90$ or I'm misinterpreting the answer provided.
$endgroup$
add a comment |
$begingroup$
In case the square is rotated around the center by an angle theta, w.r.t the ground position (considered as when the sides are parallel to the x and y axis), the vertices are given as -
Let L = length of the side. Let (h,k) be the center point.
$(h - frac12L(sintheta + costheta), k - frac12L(sintheta - costheta)$,
$(h + frac12L(sintheta - costheta), k - frac12L(sintheta + costheta)$,
$(h + frac12L(sintheta + costheta), k + frac12L(sintheta - costheta)$,
$(h - frac12L(sintheta - costheta), k + frac12L(sintheta + costheta)$
Please beware, the answer provided by @fleablood seems to be wrong. Didn't work out for me. It fails in the very basic case of $theta=0$ and $theta=90$ or I'm misinterpreting the answer provided.
$endgroup$
In case the square is rotated around the center by an angle theta, w.r.t the ground position (considered as when the sides are parallel to the x and y axis), the vertices are given as -
Let L = length of the side. Let (h,k) be the center point.
$(h - frac12L(sintheta + costheta), k - frac12L(sintheta - costheta)$,
$(h + frac12L(sintheta - costheta), k - frac12L(sintheta + costheta)$,
$(h + frac12L(sintheta + costheta), k + frac12L(sintheta - costheta)$,
$(h - frac12L(sintheta - costheta), k + frac12L(sintheta + costheta)$
Please beware, the answer provided by @fleablood seems to be wrong. Didn't work out for me. It fails in the very basic case of $theta=0$ and $theta=90$ or I'm misinterpreting the answer provided.
answered Mar 30 at 7:52
Kartik GuptaKartik Gupta
111
111
add a comment |
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%2f1490115%2fhow-to-find-corners-of-square-from-its-center-point%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$
Does the square require an orientation? The simplest answer is simply the four points (+/- 1/2 length +/- x, +/- 1/2 length +/- y)
$endgroup$
– fleablood
Oct 21 '15 at 3:11
$begingroup$
It doesn't require any orientation. It should be as simple as possible. Could you please elaborate you simplest answer? I am not that good with math...
$endgroup$
– dambros
Oct 21 '15 at 3:14