summaryrefslogtreecommitdiff
path: root/cercle.cpp
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2023-01-13 02:34:01 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2023-01-13 02:34:01 -0500
commit3fb8effa3603e9a9b96d263009fc1397433436ba (patch)
treeae4d7bf573f69245713b07c253a8027ace8d5244 /cercle.cpp
parentb4f16386c70bfeab700e7cc129f2f04295aa0059 (diff)
Tout sauf les tests
Diffstat (limited to 'cercle.cpp')
-rw-r--r--cercle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cercle.cpp b/cercle.cpp
index 4747258..d2e7f61 100644
--- a/cercle.cpp
+++ b/cercle.cpp
@@ -18,7 +18,7 @@ int Cercle::getRayon() {
return rayon;
};
-double Cercle::getAire() {
+double Cercle::aire() {
return M_PI*pow(rayon,2);
};
@@ -30,5 +30,5 @@ void Cercle::afficher(ostream & s) {
s << "Cercle (x=" << getAncrage().x
<< ", y=" << getAncrage().y
<< ", r=" << getRayon()
- << ", aire=" << getAire() << ")\n";
+ << ", aire=" << aire() << ")\n";
};