mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 12:39:23 +02:00
Docs: LazUtils/graphmath. Updates content in PolyBezierArcPoints. Changes in 1014cd33
. Issue #41400.
(cherry picked from commit b2302cef64
)
This commit is contained in:
parent
241e9e966a
commit
0ecbef6174
@ -869,27 +869,24 @@ Pointer Array of TPoints for use with Polyline or Polygon.
|
|||||||
</short>
|
</short>
|
||||||
<descr>
|
<descr>
|
||||||
<p>
|
<p>
|
||||||
Use PolyBezierArcPoints to convert an Arc and ArcLength into a Pointer
|
Use PolyBezierArcPoints to convert an arc between two angles Angle1 and Angle2
|
||||||
Array of TPoints for use with Polyline or Polygon. The Rotation parameter
|
into a pointer array of TPoints for use with Polyline or Polygon.
|
||||||
accepts a Rotation-Angle for a rotated Ellipse - for a non-rotated ellipse
|
The Rotation parameter accepts a rotation angle for a rotated ellipse - for
|
||||||
this value would be 0, or 360. The result is an Approximation based on 1 or
|
a non-rotated ellipse this value would be 0, or 360*16.
|
||||||
more Beziers. If the AngleLength is greater than 45 degrees, it recursively
|
|
||||||
breaks the Arc into Arcs of 45 degrees or less, and converts them into
|
|
||||||
Beziers with BezierArcPoints.
|
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
The angles are specified in 1/16th of a degree. For example, a full circle
|
The result is an approximation based on 1 or more Beziers. If the angle length
|
||||||
equals 5760 (16*360).
|
is greater than 45*16 degrees, it recursively breaks the arc into arcs of
|
||||||
</p>
|
45*16 degrees or less, and converts them into beziers with BezierArcPoints.
|
||||||
<p>
|
The angles are 1/16th of a degree. For example, a full circle equals
|
||||||
Positive values in Angle and AngleLength mean counter-clockwise while
|
5760 (16*360).
|
||||||
negative values mean clockwise direction. Zero degrees is at the 3
|
|
||||||
o'clock position.
|
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
|
Positive values in Angle1 and Angle2 mean counter-clockwise while negative
|
||||||
|
values mean clockwise direction. Zero degrees is at the 3'o clock position.
|
||||||
Points is automatically initialized, so any existing information is lost,
|
Points is automatically initialized, so any existing information is lost,
|
||||||
and the array starts at 0. Points should ALWAYS be Freed when done by
|
and the array starts at 0. Points should ALWAYS be freed when done by calling
|
||||||
calling to ReallocMem(Points, 0).
|
to ReallocMem(Points, 0).
|
||||||
</p>
|
</p>
|
||||||
</descr>
|
</descr>
|
||||||
<seealso/>
|
<seealso/>
|
||||||
|
Loading…
Reference in New Issue
Block a user