From 0806fe14abc94b98a54a37f23454cea3508bafcc Mon Sep 17 00:00:00 2001 From: dsiders Date: Tue, 11 Jul 2023 16:30:43 +0100 Subject: [PATCH] Docs: LazUtils/graphmath. Adds EllipsePolygon topic. Modifies tagging for operator overloads. Depends on c423a794b5. --- docs/xml/lazutils/graphmath.xml | 81 +++++++++++++++++++++++---------- 1 file changed, 58 insertions(+), 23 deletions(-) diff --git a/docs/xml/lazutils/graphmath.xml b/docs/xml/lazutils/graphmath.xml index 0250e0bb27..91242d8283 100644 --- a/docs/xml/lazutils/graphmath.xml +++ b/docs/xml/lazutils/graphmath.xml @@ -37,6 +37,7 @@ package. + @@ -614,6 +615,40 @@ o'clock position. + + +Gets an array of points for a polygon which approximates an ellipse in the +specified rectangle. + + +

+EllipsePolygon is a TPointArray function used to +calculate the array of points which approximate an ellipse bounded by the +rectangle specified in the ARect argument. In EllipsePolygon, the ellipse is +aligned to X and Y axes in the rectangle. It calculates the center point, +radii, and diameter for the ellipse using ARect as well as the minimum number +of points needed such that the distance between the edges of the rectangle and +the mathematical circle is less than the rounding error (0.5) and a smoother +stepping value of 0.4. The points for the polygon are calculated and stored in +the return value. +

+
+ +Added in LCL version 4.0. + + +
+ + +Array with the points for the polygon. + + + + +Rectangle instance with the bounds for an X- and Y-aligned ellipse. + + + FloatPoint - it is essentially like Classes.Point in use, except @@ -1011,7 +1046,7 @@ Use SplitBezier to split any 4-Point Bezier into two 4-Point Beziers: a - + Implements the Add operator (+) for values using the TFloatPoint type. @@ -1023,7 +1058,7 @@ corresponding members in the TFloatPoint result. - + Implements the Add operator (+) for values using the TFloatPoint and Extended types. @@ -1037,7 +1072,7 @@ type and used in the result for the operator. - + Implements the Add operator (+) for values using the Extended and TFloatPoint types. @@ -1051,7 +1086,7 @@ type and used in the result for the operator. - + Implements the Add operator (+) for values using the TFloatPoint and TPoint types. @@ -1060,7 +1095,7 @@ types. - + Implements the Add operator (+) for values using the TPoint and TFloatPoint types. @@ -1069,7 +1104,7 @@ types. - + Implements the Subtract operator (-) for values using the TFloatPoint and Extended types. @@ -1082,14 +1117,14 @@ the TFloatPoint type and used in the result for the operator. - + Implements the Subtract operator (-) for values using the TFloatPoint type. - + Implements the Subtract operator (-) for values using the TFloatPoint and TPoint types. @@ -1097,7 +1132,7 @@ TPoint types. - + Implements the Subtract operator (-) for values using the TPoint and TFloatPoint types. @@ -1105,14 +1140,14 @@ TFloatPoint types. - + Implements the Multiply operator (*) for values using the TFloatPoint type. - + Implements the Multiply operator (*) for values using the TFloatPoint and Extended types. @@ -1124,7 +1159,7 @@ The value in the Extended type is applied to both the X and Y members in the TFl - + Implements the Multiply operator (*) for values using the Extended and TFloatPoint types. @@ -1136,7 +1171,7 @@ The value in the Extended type is applied to both the X and Y members in the TFl - + Implements the Multiply operator (*) for values using the TFloatPoint and TPoint types. @@ -1144,7 +1179,7 @@ TPoint types. - + Implements the Multiply operator (*) for values using the TPoint and TFloatPoint types. @@ -1152,14 +1187,14 @@ TFloatPoint types. - + Implements the Divide operator (/) for values using the TFloatPoint type. - + Implements the Divide operator (/) for values using the TFloatPoint and Extended types. @@ -1173,7 +1208,7 @@ performed for the divisor in the operator. - + Implements the Divide operator (/) for values using the TFloatPoint and TPoint types. @@ -1181,7 +1216,7 @@ TPoint types. - + Implements the Divide operator (/) for values using the TPoint and TFloatPoint types. @@ -1189,7 +1224,7 @@ TFloatPoint types. - + Implements the Equal operator (=) to compare values using the TPoint type. @@ -1201,7 +1236,7 @@ the same. - + Implements the Equal operator (=) to compare values using the TFloatPoint type. @@ -1213,7 +1248,7 @@ the same. - + Implements the Equal operator (=) to compare values using the TRect type. @@ -1225,7 +1260,7 @@ compared values are the same. - + Implements the Assign operator (=) to store a value using the TFloatPoint type to a TPoint instance. @@ -1240,7 +1275,7 @@ used for the X and Y members in the result for the operator. - + Implements the Assign operator (=) to store a value using the TPoint type to a TFloatPoint instance.