Math, asked by aroragulshan240, 7 hours ago

count angle of rectangle​

Answers

Answered by naseemakhtar2326
0

Answer:

I have 4 points 1,2,3,4 that closes a rectangle.

The points are in a array in this following way: x1 y1 x2 y2 x3 y3 x4 y4

The problem I have is that the rectangle can be rotated in a angle.

How can I calculate the original points (gray outline), and the angle?

enter image description here

I'm trying to reproduce this effect in javascript+css3-transform, so I need to first know the straight dimensions and then rotate with the css.

I just know if the rectangle is straight by comparing points e.g. y1==y2

if(x1==x4 && x2==x3 && y1==y2 && y4==y3){

rectangle.style.top = y1;

rectangle.style.left = x1;

rectangle.style.width = x2-x1;

rectangle.style.height = y4-y1;

rectangle.style.transform = "rotate(?deg)";

Step-by-step explanation:

Please mark me as brainliest

Answered by llPresciousLilyll
115

Answer:

Four Right Angles

A quadrilateral with four right angles. a quadrilateral where the two diagonals are equal in length and bisect each other.

Step-by-step explanation:

HOPE IT HELPS!!

( ◜‿◝ )♡

Similar questions