Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
Arc length from given Angle?
Here we will see how to get the arc length from the given angle. One circle is given. The radius of the circle is given. Our task is to get the arc length using the radius and the angle. The angle is in degree.

Here r and x is given. We have to find the value of L. The formula is like below −
? = 2?? ∗ (?/360)
Example
#include <iostream>
using namespace std;
float getArcLength(float r, float x){
return (2 * 3.1415f * r) * (x / 360.0f);
}
int main() {
float rad = 12.0f;
float angle = 45.0f;
cout << "Arc Length: " << getArcLength(rad, angle);
}
Output
Arc Length: 9.4245
Advertisements
