Method RealignVerticesInBounds
RealignVerticesInBounds(IList<Vector2>, Rect, bool)
Realigns the vertices (in-place) inside their axis-aligned bounding-box.
Declaration
public static void RealignVerticesInBounds(IList<Vector2> vertices, Rect bounds, bool flip)
Parameters
Type | Name | Description |
---|---|---|
IList<Vector2> | vertices | The vertices to realign |
Rect | bounds | The bounds into which the vertices will be realigned |
bool | flip | A boolean indicating whether to flip the coordinates on the Y axis |