PolygonToolsCreateRectangle(Single, Single, Vector2, Single) Method |
Build vertices to represent an oriented box.
Namespace: Internal.tainicom.Aether.Physics2D.CommonAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic 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