Math Is Fun Forum
  Discussion about math, puzzles, games and fun.   Useful symbols: √ ∞ ≠ ≤ ≥ ≈ ⇒ ∈ Δ θ ∴ ∑ ∫ π -

Login

Username

Password

Not registered yet?

  • Index
  •  » Help Me !
  •  » get location or x ,y coordinates of mid point of width or height

Post a reply

Go back

Write your message and submit
:) :| :( :D :o ;) :/ :P :lol: :mad: :rolleyes: :cool: | :dizzy :eek :kiss :roflol :rolleyes :shame :down :up :touched :sleep :wave :swear :tongue :what :faint :dunno
Options

Go back

Topic review (newest first)

bobbym
2012-09-21 22:57:08

Hi tina123;

Those formulas are the correct way to get the midpoint ( the red marks ) of a side of a rectangle when you have the (x,y) coordinates of the vertices of the side.

Try it on one.

Do you need a little more to understand it?

tina123
2012-09-21 22:53:02

Hy Dear Bobby,

Is that correct way to get the location in x,y of mid point of width and height ?
please check it : http://i1069.photobucket.com/albums/u472/tina12354/recTest_zps8f233dc8.png
Thanks

bobbym
2012-09-21 22:02:09

Since the sides of a rectangle are either horizontal or vertical lines you do this.

For a horizontal side with coordinates (x1,y1) and (x2,y2) the midpoint is



For a vertical side with coordinates (x1,y1) and (x2,y2) the midpoint is

tina123
2012-09-21 21:50:51

bobbym wrote:

Hi;

Do you want the mid point of a side or of the rectangle?

yes , i mid point(int form of x ,y ) of a side of rectangle  .
thanks

bobbym
2012-09-20 17:03:46

Hi;

Do you want the mid point of a side or of the rectangle?

tina123
2012-09-20 09:37:04

bobbym wrote:

Hi;

To get the midpoint of a side you just add the coordinates and divide by 2. Same as for a line.

i know the way to get the mid point . mid point will be single value .
i want mid point  location in x , y .
How can we get that  ?

bobbym
2012-09-20 04:31:45

Hi;

To get the midpoint of a side you just add the coordinates and divide by 2. Same as for a line.

tina123
2012-09-20 04:08:40

Well, we can find central  location of a rectangle .
let say we have x,y initiail corner of rectangle is 1,1 . width and height of rectangle is 92 and 23 .

so  cX = x + width/2 , cy =y+ height /2
that will give u central location of rectangle .
but how  can we get location of mid point of width or height  ?

bobbym
2012-09-20 03:17:46

Hi tina123;

In order to get the x,y coordinates of your rectangle it would have to located along the xy axis otherwise the center point of it will be different for each rectangle.

See the drawing below.

tina123
2012-09-20 03:07:31

i have a rectangle with height = 123 and width = 92. also i have central location x ,y = 47 , 62 .

I can find the mid  point of width and height of rectangle .
but i want to get location x ,y of mid point of width or height of rectangle .How  can i get that .
Can any one please tell me mathematically .
thanks

Board footer

Powered by FluxBB