Click or drag to resize

PolygonToolsCreateRoundedRectangle Method

Creates a rounded rectangle with the specified width and height.

Namespace:  Internal.tainicom.Aether.Physics2D.Common
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static Vertices CreateRoundedRectangle(
	float width,
	float height,
	float xRadius,
	float yRadius,
	int segments
)

Parameters

width
Type: SystemSingle
The width.
height
Type: SystemSingle
The height.
xRadius
Type: SystemSingle
The rounding X radius.
yRadius
Type: SystemSingle
The rounding Y radius.
segments
Type: SystemInt32
The number of segments to subdivide the edges.

Return Value

Type: Vertices
See Also