Click or drag to resize

PolygonToolsCreateRectangle Method (Single, Single, Vector2, Single)

Build vertices to represent an oriented box.

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 CreateRectangle(
	float hx,
	float hy,
	Vector2 center,
	float angle
)

Parameters

hx
Type: SystemSingle
the half-width.
hy
Type: SystemSingle
the half-height.
center
Type: Internal.tainicom.Aether.Physics2D.CommonVector2
the center of the box in local coordinates.
angle
Type: SystemSingle
the rotation of the box in local coordinates.

Return Value

Type: Vertices
See Also