|
wxArt2D
|
#include "a2dprec.h"#include "wx/wx.h"#include <float.h>#include "wx/general/gen.h"#include "wx/general/id.h"#include "wx/artbase/polyver.h"#include "wx/artbase/liner.h"#include "wx/artbase/artglob.h"
Go to the source code of this file.
Classes | |
| struct | gds_spline_stack_struct |
Macros | |
| #define | KLEIN 1.0e-30 |
| #define | GROOT 1.0e30 |
| #define | PHI_MARGE 0.3 |
| #define | SEG_MARGE 0.3 |
| #define | half(z1, z2) ((z1+z2)/2.0) |
| #define | SPLINE_STACK_DEPTH 20 |
Typedefs | |
|
typedef struct gds_spline_stack_struct | Stack |
Functions | |
| double | ClclDistSqrPntLine (const a2dPoint2D &p, const a2dPoint2D &p1, const a2dPoint2D &p2) |
| Calculate the square distance between a point and a line. More... | |
| bool | InArc (double angle, double start, double end, bool clockwise) |
| bool | CalcR (double begin_x, double begin_y, double middle_x, double middle_y, double end_x, double end_y, double &radius, a2dPoint2D ¢er_p) |
| Calculation of center for the Arc. More... | |
| bool | CalcR (double begin_x, double begin_y, double middle_x, double middle_y, double end_x, double end_y, double &radius, double ¢er_x, double ¢er_y, double &beginrad, double &midrad, double &endrad, double &phit) |
| Calculation of center for the Arc. More... | |
Variables | |
| const int | VPATHSPLINE_STEP = 20 |
Copyright: 2000-2004 (c) Klaas Holwerda
Licence: wxWidgets Licence
RCS-ID:
Definition in file polyver.cpp.
| bool CalcR | ( | double | begin_x, |
| double | begin_y, | ||
| double | middle_x, | ||
| double | middle_y, | ||
| double | end_x, | ||
| double | end_y, | ||
| double & | radius, | ||
| a2dPoint2D & | center_p | ||
| ) |
Calculation of center for the Arc.
| begin_x | x start point of arc. |
| begin_y | y start point of arc. |
| middle_x | x middle point of arc. |
| middle_y | y middle point of arc. |
| end_x | x end point of arc. |
| end_y | y end point of arc. |
| radius | radius of the circle calculated |
| center_p | the center calculated |
Definition at line 4786 of file polyver.cpp.
| bool CalcR | ( | double | begin_x, |
| double | begin_y, | ||
| double | middle_x, | ||
| double | middle_y, | ||
| double | end_x, | ||
| double | end_y, | ||
| double & | radius, | ||
| double & | center_x, | ||
| double & | center_y, | ||
| double & | beginrad, | ||
| double & | midrad, | ||
| double & | endrad, | ||
| double & | phit | ||
| ) |
Calculation of center for the Arc.
| begin_x | x start point of arc. |
| begin_y | y start point of arc. |
| middle_x | x middle point of arc. |
| middle_y | y middle point of arc. |
| end_x | x end point of arc. |
| end_y | y end point of arc. |
| radius | radius of the circle calculated |
| center_x | x of the center calculated |
| center_y | y of the center calculated |
| beginrad | calculated starting angle in radians |
| midrad | calculated middle angle in radians |
| endrad | calculated end angle in radians |
| phit | total calculated in radians (AntiClockwise positif, else negatif ) |
Definition at line 4797 of file polyver.cpp.
| double ClclDistSqrPntLine | ( | const a2dPoint2D & | p, |
| const a2dPoint2D & | p1, | ||
| const a2dPoint2D & | p2 | ||
| ) |
Calculate the square distance between a point and a line.
This returns DBL_MAX if the point is beyond the edges
Definition at line 103 of file polyver.cpp.
| bool InArc | ( | double | angle, |
| double | start, | ||
| double | end, | ||
| bool | clockwise | ||
| ) |
is the angle within the arc segment taking into account drawing from start to end in clockwise or anti clocwise direction.
Definition at line 148 of file polyver.cpp.