Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Bounds

Computes the bounds of a bezier path.
Read time 1 minuteLast updated 6 days ago

Definition

Bounds(BezierPathSegment[])

Computes the bounds of a bezier path.
public static Rect Bounds(BezierPathSegment[] path)

Parameters

The path to compute the bounds from

Returns

Type

Description

RectA Rect containing the axis-aligned bounding-box of the contour

Bounds(IEnumerable<Vector2>)

Computes the bounds of a list of vertices.
public static Rect Bounds(IEnumerable<Vector2> vertices)

Parameters

The list of vertices to compute the bounds from

Returns

Type

Description

RectA Rect containing the axis-aligned bounding-box of the vertices

Bounds(BezierSegment, Vector2, Vector2)

Computes the bounds of a segment.
public static void Bounds(BezierSegment segment, out Vector2 min, out Vector2 max)

Parameters

The segment to flip

The output min value of the segment

The output max value of the segment