Legacy Documentation: Version 5.3
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Rect.MinMaxRect

public static Rect MinMaxRect(float xmin, float ymin, float xmax, float ymax);

Parameters

xmin The minimum X coordinate.
ymin The minimum Y coordinate.
xmax The maximum X coordinate.
ymax The maximum Y coordinate.

Returns

Rect A rectangle matching the specified coordinates.

Description

Creates a rectangle from min/max coordinate values.