MKI_CalcEllipseAngle (Calculation) New in Version 2018.0

www.CAD6.com

C++ Syntax

double

MKI_CalcEllipseAngle(

 MKI_CONST_POINT_REF f_rCenter,

 MKI_CONST_POINT_REF f_rVector1,

 MKI_CONST_POINT_REF f_rVector2,

 MKI_CONST_POINT_REF f_rAngle,

 MKI_POINT_PTR f_pResult );

 

Calculates the relative angle inside an ellipse based on absolute values.

 

Parameters

Center

[MKI_CONST_POINT_REF] Coordinates of the ellipse's center-point in internal [mm].

Vector1

[MKI_CONST_POINT_REF] Coordinates of the first ellipse vector's definition in internal [mm].

Vector2

[MKI_CONST_POINT_REF] Coordinates of the second ellipse vector's definition in internal [mm].

Angle

[MKI_CONST_POINT_REF] Coordinates of the angle definition point in internal [mm].

Result

[MKI_POINT_PTR] Address of a point to receive the resulting point on the ellipse arc at the given angle in internal [mm]. If nullptr, no point will be calculated.

 

Return Value

Returns the relative angle in [rad]. Multiply with MKI_MATH_RAD_DEG constant (180/pi) to convert [rad] values to [deg].

 

CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH