Method Bounds
Bounds(BezierPathSegment[])
Computes the bounds of a bezier path.
Declaration
public static Rect Bounds(BezierPathSegment[] path)
Parameters
Type | Name | Description |
---|---|---|
BezierPathSegment[] | path | The path to compute the bounds from |
Returns
Type | Description |
---|---|
Rect | A Rect containing the axis-aligned bounding-box of the contour |
Bounds(IEnumerable<Vector2>)
Computes the bounds of a list of vertices.
Declaration
public static Rect Bounds(IEnumerable<Vector2> vertices)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Vector2> | vertices | The list of vertices to compute the bounds from |
Returns
Type | Description |
---|---|
Rect | A Rect containing the axis-aligned bounding-box of the vertices |
Bounds(BezierSegment, out Vector2, out Vector2)
Computes the bounds of a segment.
Declaration
public static void Bounds(BezierSegment segment, out Vector2 min, out Vector2 max)
Parameters
Type | Name | Description |
---|---|---|
BezierSegment | segment | The segment to flip |
Vector2 | min | The output min value of the segment |
Vector2 | max | The output max value of the segment |