Click or drag to resize

PolygonToolsCreateRectangle(Single, Single, Vector2, Single) Method

Build vertices to represent an oriented box.

Namespace: Internal.tainicom.Aether.Physics2D.Common
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public static Vertices CreateRectangle(
	float hx,
	float hy,
	Vector2 center,
	float angle
)

Parameters

hx  Single
the half-width.
hy  Single
the half-height.
center  Vector2
the center of the box in local coordinates.
angle  Single
the rotation of the box in local coordinates.

Return Value

Vertices
See Also