Method BoundingBox
BoundingBox(ReadOnlySpan<float2>)
Returns corresponding bounding box for positions
.
Declaration
public static (float2 min, float2 max) BoundingBox(ReadOnlySpan<float2> positions)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<float2> | positions | A collection of positions. Must contain at least one point. |
Returns
Type | Description |
---|---|
(float2 min, float2 max) | A tuple (min, max) containing the minimum and maximum corners of the bounding box. |
BoundingBox(ReadOnlySpan<double2>)
Returns corresponding bounding box for positions
.
Declaration
public static (double2 min, double2 max) BoundingBox(ReadOnlySpan<double2> positions)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<double2> | positions | A collection of positions. Must contain at least one point. |
Returns
Type | Description |
---|---|
(double2 min, double2 max) | A tuple (min, max) containing the minimum and maximum corners of the bounding box. |
BoundingBox(ReadOnlySpan<int2>)
Returns corresponding bounding box for positions
.
Declaration
public static (int2 min, int2 max) BoundingBox(ReadOnlySpan<int2> positions)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<int2> | positions | A collection of positions. Must contain at least one point. |
Returns
Type | Description |
---|---|
(int2 min, int2 max) | A tuple (min, max) containing the minimum and maximum corners of the bounding box. |
BoundingBox(ReadOnlySpan<fp2>)
Returns corresponding bounding box for positions
.
Declaration
public static (fp2 min, fp2 max) BoundingBox(ReadOnlySpan<fp2> positions)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<fp2> | positions | A collection of positions. Must contain at least one point. |
Returns
Type | Description |
---|---|
(fp2 min, fp2 max) | A tuple (min, max) containing the minimum and maximum corners of the bounding box. |