Method GetSKPointsForDrawWave
GetSKPointsForDrawWave(SKRectI)
Generates an array of points representing a wave pattern within the specified rectangular area.
public static SKPoint[] GetSKPointsForDrawWave(SKRectI rect)
Parameters
rectSKRectIThe rectangular area within which the wave pattern is generated.
Returns
- SKPoint[]
An array of SKPoint objects representing the points of the wave pattern. The wave spans the horizontal range of the rectangle and alternates vertically to create the pattern.
Remarks
The method ensures that the wave pattern fits within the bounds of the specified rectangle. The horizontal spacing and vertical offsets of the wave are determined by internal scaling factors.