Rect2

There is currently no description for this class. Please help us by contributing one!

Note

There are notable differences when using this API with C#. See C# Differences for more information.

Properties

Vector2

end

Vector2(0, 0)

Vector2

position

Vector2(0, 0)

Vector2

size

Vector2(0, 0)

Constructors

Rect2

Rect2 ( )

Rect2

Rect2 ( Rect2 from )

Rect2

Rect2 ( Rect2i from )

Rect2

Rect2 ( Vector2 position, Vector2 size )

Rect2

Rect2 ( float x, float y, float width, float height )

Methods

Rect2

abs ( ) const

bool

encloses ( Rect2 b ) const

Rect2

expand ( Vector2 to ) const

float

get_area ( ) const

Vector2

get_center ( ) const

Rect2

grow ( float amount ) const

Rect2

grow_individual ( float left, float top, float right, float bottom ) const

Rect2

grow_side ( int side, float amount ) const

bool

has_area ( ) const

bool

has_point ( Vector2 point ) const

Rect2

intersection ( Rect2 b ) const

bool

intersects ( Rect2 b, bool include_borders=false ) const

bool

is_equal_approx ( Rect2 rect ) const

bool

is_finite ( ) const

Rect2

merge ( Rect2 b ) const

Operators

bool

operator != ( Rect2 right )

Rect2

operator * ( Transform2D right )

bool

operator == ( Rect2 right )


Property Descriptions

Vector2 end = Vector2(0, 0)

There is currently no description for this property. Please help us by contributing one!


Vector2 position = Vector2(0, 0)

There is currently no description for this property. Please help us by contributing one!


Vector2 size = Vector2(0, 0)

There is currently no description for this property. Please help us by contributing one!


Constructor Descriptions

Rect2 Rect2 ( )

There is currently no description for this constructor. Please help us by contributing one!


Rect2 Rect2 ( Rect2 from )

There is currently no description for this constructor. Please help us by contributing one!


Rect2 Rect2 ( Rect2i from )

There is currently no description for this constructor. Please help us by contributing one!


Rect2 Rect2 ( Vector2 position, Vector2 size )

There is currently no description for this constructor. Please help us by contributing one!


Rect2 Rect2 ( float x, float y, float width, float height )

There is currently no description for this constructor. Please help us by contributing one!


Method Descriptions

Rect2 abs ( ) const

There is currently no description for this method. Please help us by contributing one!


bool encloses ( Rect2 b ) const

There is currently no description for this method. Please help us by contributing one!


Rect2 expand ( Vector2 to ) const

There is currently no description for this method. Please help us by contributing one!


float get_area ( ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 get_center ( ) const

There is currently no description for this method. Please help us by contributing one!


Rect2 grow ( float amount ) const

There is currently no description for this method. Please help us by contributing one!


Rect2 grow_individual ( float left, float top, float right, float bottom ) const

There is currently no description for this method. Please help us by contributing one!


Rect2 grow_side ( int side, float amount ) const

There is currently no description for this method. Please help us by contributing one!


bool has_area ( ) const

There is currently no description for this method. Please help us by contributing one!


bool has_point ( Vector2 point ) const

There is currently no description for this method. Please help us by contributing one!


Rect2 intersection ( Rect2 b ) const

There is currently no description for this method. Please help us by contributing one!


bool intersects ( Rect2 b, bool include_borders=false ) const

There is currently no description for this method. Please help us by contributing one!


bool is_equal_approx ( Rect2 rect ) const

There is currently no description for this method. Please help us by contributing one!


bool is_finite ( ) const

There is currently no description for this method. Please help us by contributing one!


Rect2 merge ( Rect2 b ) const

There is currently no description for this method. Please help us by contributing one!


Operator Descriptions

bool operator != ( Rect2 right )

There is currently no description for this operator. Please help us by contributing one!


Rect2 operator * ( Transform2D right )

There is currently no description for this operator. Please help us by contributing one!


bool operator == ( Rect2 right )

There is currently no description for this operator. Please help us by contributing one!