answersLogoWhite

0


Best Answer

Right angles are always 90 degrees. There is no need to calculate this; an angle is either 90 degrees or it is not. The following inline function is all you really need:

inline const bool IsRightAngle(double angle) {

return(angle==90.0); }

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: C plus plus code to calculate a right angle?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Which mobile company code is plus plus 372?

Its code of estonia


How do you calculate the size of a class in memory in C plus plus?

Use sizeof( ).


How do you calculate percentage of marks obtained in 1 subject in c plus plus?

You can't, you have to come up with variables to calculate grades


What is the benefit of using function.llustrate different ways of passing argument to function in c plus plus?

Functions are used to reduce the lines of code and the complexity of the code. For an instance let us suppose that you want to calculate the factorial of numbers at different times in a program. There are two ways to do this 1. Write a 4-5 line code every time you want to calculate factorial. 2. Write a function of 4-5 lines which calculates the factorial and call that function every time you need to calculate factorial by just writing a single line. In C++ you can pass the variable, address of the variable or a reference to the variable in a function


What is the Visual C plus plus 2008 Express Serial Code?

The Express edition of C++ does not require a serial code. It is free.

Related questions

What letter has both a right angle plus acute angle?

If you write it so the middle angle is a right angle, "K" fits the description.


What does a right angle plus 3 plus a straight angle equal?

It depends whether you mean 3 is an angle or not And if it is it is 90 + 180 + 3=273.


Does a right angle plus an acute angle equal an obtuse angle rarely?

In mathematics, an obtuse angle is defined as an angle greater than 90° and less than 180°. A right angle is 90°. An acute angle is greater than 0°, but less than 90°. Therefore, a 90° right angle plus any acute angle will always fulfill the requirements of an obtuse angle.


Is this impossible create a trapezoid with 1 right angle and 1 120 degrees angle?

Yes but it can have 2 right angles and one 120 degree angle plus one 60 degree angle


Why construction of a triangle with right angle and another obtuse angle is not possible?

Because the 3 interior angles of a triangle add up to 180 degrees no more and no less but a right angle plus an obtuse angle would be over 180 degrees.


Who introduced a2 plus b2 equals c2?

Pythagoras' theorem for a right angle triangle.


Is it possible for a right triangle to have two right angles why or why not?

No because the 3 angles in right angle triangle add up to 180 degrees and so 2 right angles plus another angle would be over 180 degrees.


What quadrilateral has two right angles only one set of parallel sides and no lines of symmetry?

It is a trapezoid that can have two right angles plus one obtuse angle plus one acute angle and the four angles add up to 360 degrees.


Can one angle in a right triangle measure 100 degrees?

No, because a triangle's angles can only measure up to 180 degrees. A right angle is 90 degrees, plus another 100 degree angle would be 190 degrees.


The measure of angle A is 5x plus 4 and the measure of angle B is 3x plus 10 what is the value of x?

From the information given, we have no idea, and no way to calculate it. Could there possibly be another piece of information that was left out of the question ? Such as perhaps the sum of the two angles ?


If one side of a triangle is 30 degrees what degree does the third angle need to be to make it a right angle?

sum of all angles in a triangle is always 180. So 30 degrees, plus the right angle (90) = 120. 180-120 = 60


How do you find the hypotenuse with only a leg and a degree?

If it's a right angle triangle and an acute angle plus the length of a leg is given then use trigonometry to find the hypotenuse.