IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Circle2d.h
Go to the documentation of this file.
1 // Circle2d.h:
3 // -----------
4 //
14 
15 #ifndef __IPSDKMATH_CIRCLE2D_H__
16 #define __IPSDKMATH_CIRCLE2D_H__
17 
19 #include <IPSDKMath/Constants.h>
21 
22 namespace ipsdk {
23 namespace math {
24 
27 
30 IPSDKMATH_API bool
31 circleFromPoints(const ipReal64 x0, const ipReal64 y0,
32  const ipReal64 x1, const ipReal64 y1,
33  const ipReal64 x2, const ipReal64 y2,
34  ipReal64& xc, ipReal64& yc, ipReal64& radius);
35 
37 IPSDK_FORCEINLINE ipReal64
39 {
40  return 2 * M_PI * radius;
41 }
42 
44 IPSDK_FORCEINLINE ipReal64
45 circleArea(const ipReal64 radius)
46 {
47  return M_PI * radius * radius;
48 }
49 
52 
53 } // end of namespace math
54 } // end of namespace ipsdk
55 
56 #endif // __IPSDKMATH_CIRCLE2D_H__
Definition of import/export macro for library.
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
Predefined constants for ipsdk math library.
IPSDK_FORCEINLINE ipReal64 circleArea(const ipReal64 radius)
compute circle area
Definition: Circle2d.h:45
#define IPSDKMATH_API
Import/Export macro for library IPSDKMath.
Definition: IPSDKMathExports.h:27
IPSDKMATH_API bool circleFromPoints(const ipReal64 x0, const ipReal64 y0, const ipReal64 x1, const ipReal64 y1, const ipReal64 x2, const ipReal64 y2, ipReal64 &xc, ipReal64 &yc, ipReal64 &radius)
computation of circle parameters from three points
IPSDK_FORCEINLINE ipReal64 circlePerimeter(const ipReal64 radius)
compute circle perimeter
Definition: Circle2d.h:38