Jami
Jami

Reputation: 589

How to tell if a shape is a Quadrilaterals by only having their lengths?

Assume that we have only four lengths of a potential Quadrilaterals. Also suppose that they are given in an specific order for simplicity so that any two consequence of length represent two adjacent sides. Is there any algorithm by which we can tell that these inputs can make a valid Quadrilaterals?

Upvotes: 0

Views: 3099

Answers (2)

somerandomgenius
somerandomgenius

Reputation: 1

Just the triangle formula for quadrilaterals.

Upvotes: -1

nitish712
nitish712

Reputation: 19764

Use the following:

Sum of any three sides of a quadrilateral must be greater than the fourth side.

Upvotes: 5

Related Questions