Declarations ​
pascal
function Star(const P: TFloatPoint; const InnerRadius, OuterRadius: TFloat; Vertices: Integer = 5; Rotation: TFloat = 0): TArrayOfFloatPoint; overload;
function Star(const X, Y, InnerRadius, OuterRadius: TFloat; Vertices: Integer = 5; Rotation: TFloat = 0): TArrayOfFloatPoint; overload;
function Star(const P: TFloatPoint; const Radius: TFloat; Vertices: Integer = 5; Rotation: TFloat = 0): TArrayOfFloatPoint; overload;
function Star(const X, Y, Radius: TFloat; Vertices: Integer = 5; Rotation: TFloat = 0): TArrayOfFloatPoint; overload;Overload Details
Overload 1 ​
pascal
function Star(const P: TFloatPoint; const InnerRadius, OuterRadius: TFloat; Vertices: Integer = 5; Rotation: TFloat = 0): TArrayOfFloatPoint; overload;Generates a star centered at P with specified inner/outer radii, vertex count, and rotation.
| Parameter | Type | Description |
|---|---|---|
P | TFloatPoint | Center coordinates. |
InnerRadius, OuterRadius | TFloat | Inner and outer star radii. |
Vertices | Integer | Number of star points/vertices. |
Rotation | TFloat | Initial rotation angle in radians. |
| Type | Description |
|---|---|
TArrayOfFloatPoint | A TArrayOfFloatPoint array containing generated polygon coordinates. |
Overload 2 ​
pascal
function Star(const X, Y, InnerRadius, OuterRadius: TFloat; Vertices: Integer = 5; Rotation: TFloat = 0): TArrayOfFloatPoint; overload;Generates a star centered at (X, Y).
| Parameter | Type | Description |
|---|---|---|
X, Y | TFloat | Center coordinates. |
InnerRadius, OuterRadius | TFloat | Inner and outer radii. |
Vertices | Integer | Number of star points. |
Rotation | TFloat | Initial rotation angle in radians. |
| Type | Description |
|---|---|
TArrayOfFloatPoint | A TArrayOfFloatPoint array containing generated polygon coordinates. |
Overload 3 ​
pascal
function Star(const P: TFloatPoint; const Radius: TFloat; Vertices: Integer = 5; Rotation: TFloat = 0): TArrayOfFloatPoint; overload;Generates a regular star centered at P.
| Parameter | Type | Description |
|---|---|---|
P | TFloatPoint | Center coordinates. |
Radius | TFloat | Star radius. |
Vertices | Integer | Number of points. |
Rotation | TFloat | Rotation angle in radians. |
| Type | Description |
|---|---|
TArrayOfFloatPoint | A TArrayOfFloatPoint array containing generated polygon coordinates. |
Overload 4 ​
pascal
function Star(const X, Y, Radius: TFloat; Vertices: Integer = 5; Rotation: TFloat = 0): TArrayOfFloatPoint; overload;Generates a regular star centered at (X, Y).
| Parameter | Type | Description |
|---|---|---|
X, Y | TFloat | Center coordinates. |
Radius | TFloat | Star radius. |
Vertices | Integer | Number of points. |
Rotation | TFloat | Rotation angle in radians. |
| Type | Description |
|---|---|
TArrayOfFloatPoint | A TArrayOfFloatPoint array containing generated polygon coordinates. |
Description ​
Star constructs star-shaped polygon contours.