PolygonToolsCreateRoundedRectangle Method |
Creates a rounded rectangle with the specified width and height.
Namespace: Internal.tainicom.Aether.Physics2D.CommonAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic static Vertices CreateRoundedRectangle(
float width,
float height,
float xRadius,
float yRadius,
int segments
)
Parameters
- width Single
- The width.
- height Single
- The height.
- xRadius Single
- The rounding X radius.
- yRadius Single
- The rounding Y radius.
- segments Int32
- The number of segments to subdivide the edges.
Return Value
Vertices
See Also