/* Copyright (C) 2017-2020, Dirk Krause SPDX-License-Identifier: BSD-3-Clause */ /* WARNING: This file was generated by the dkct program (see http://dktools.sourceforge.net/ for details). Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: wxdarc.ctr */ /** @file wxdarc.h Header file for the wxdarc module. */ #ifndef WXDARC_H_INCLUDED /** Avoid multiple inclusions. */ #define WXDARC_H_INCLUDED 1 #line 7 "wxdarc.ctr" #include "dk4types.h" #ifdef __cplusplus extern "C" { #endif /** Arc calculation. For 3 given points (x1;y1), (x2;y2) and (x3;y3) calculate center point, radius, start and end angles and direction. If there is no solution or an infinite number of solutions, set the direction to 0. In this case drawing functions will draw two lines instead of an arc. @param pxc Address of result variable for center point x. @param pyc Address of result variable for center point y. @param pr Address of result variable for radius. @param pa Address of result variable for start angle in radians (-pi to pi). @param pb Address of result variable for end angle in radians (-5*pi to 5*pi). @param pd Address of result variable for direction. @param x1 Point 1 x. @param y1 Point 1 y. @param x2 Point 2 x. @param y2 Point 2 y. @param x3 Point 3 x. @param y3 Point 3 y. */ void wxdarc_calculation( double *pxc, double *pyc, double *pr, double *pa, double *pb, int8_t *pd, int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t x3, int32_t y3 ); #ifdef __cplusplus } #endif #endif