C++ Mock Module¶
Header file: <libs/src_mock_cxx/mock.hpp>
[source]
-
inline double area_circle(const double radius)¶
Calculates the area of a circle given its radius.
This function calculates the area of a circle using the formula: \( A = \pi \times r^2 \) where \( A \) is the area and \( r \) is the radius.
- Parameters:
radius – The radius of the circle.
- Returns:
The area of the circle.