ที่นี่เราจะเห็นพื้นที่ของสามเหลี่ยม Reuleaux ที่ใหญ่ที่สุดที่จารึกไว้ในสี่เหลี่ยมจัตุรัส สี่เหลี่ยมนั้นถูกจารึกไว้ในวงรีเดียว เรารู้ว่าความยาวแกนหลักคือ 2a และความยาวแกนรองคือ 2b ด้านข้างของสี่เหลี่ยมจัตุรัสคือ 'x' และความสูงของสามเหลี่ยม Reuleaux คือ h

เรารู้ว่าด้านของสี่เหลี่ยมจัตุรัสที่จารึกไว้ในวงรีที่มีแกนหลัก 2a และแกนรอง 2b คือ −

ความสูงของสามเหลี่ยม Reuleaux เท่ากับ a ดังนั้น h =x ดังนั้น พื้นที่ของสามเหลี่ยมรูลอซ์คือ −
.
ตัวอย่าง
#include <iostream>
#include <cmath>
using namespace std;
float areaReuleaux(float a, float b) { //a and b are half of major and minor axis of ellipse
if (a < 0 || b < 0) //either a or b is negative it is invalid
return -1;
float x = sqrt((a*a) + (b*b)) / (a*b);
float area = ((3.1415 - sqrt(3)) * (x) * (x))/2;
return area;
}
int main() {
float a = 5;
float b = 4;
cout << "Area of Reuleaux Triangle: " << areaReuleaux(a, b);
} ผลลัพธ์
Area of Reuleaux Triangle: 0.0722343