1. ## triangle points

Hi,

I want to calculate x1,y1 and x2,y2 points. anyone help me.

2. Originally Posted by kumar
Hi,

I want to calculate x1,y1 and x2,y2 points. anyone help me.

Originally Posted by earboth

But if the following conditions are satisfied you can find some relations between the variables in question.

1. Conditions:
a) The sides of the rectangle are parallel to the coordinate axes.
b) The measures of the rectangle are (known) constant values: w, l.

2. Relations:
a) $x_2 - x_1 = w$

If you want to get more relations then you must know the coordinates of the vertices of the rectangle.
You have not yet addressed these points.

3. In that rectangle I know width ,height and rectangle start X and start y. suppose , If I put a line in the center of the rectangle( parallel to the x axis)
then angle of that line is 0. and how we calculate x1, y1 and x2, y2 using formulas( directly we can tell x and y llike this --- x1 is startx , y1 is starty + height/2 and x2 is startx+ width and y2 is start y + height/2) I dont want that one. using formula how we calculate.