Edit

Share via


Box2 Constructors

Definition

Overloads

Box2(Vector2, Vector2)

Constructs a new Box2 with the specified dimensions.

Box2(Single, Single, Single, Single)

Constructs a new Box2 with the specified dimensions.

Box2(Vector2, Vector2)

Constructs a new Box2 with the specified dimensions.

public Box2 (OpenTK.Vector2 topLeft, OpenTK.Vector2 bottomRight);
new OpenTK.Box2 : OpenTK.Vector2 * OpenTK.Vector2 -> OpenTK.Box2

Parameters

topLeft
Vector2

AnOpenTK.Vector2 describing the top-left corner of the Box2.

bottomRight
Vector2

An OpenTK.Vector2 describing the bottom-right corner of the Box2.

Applies to

Box2(Single, Single, Single, Single)

Constructs a new Box2 with the specified dimensions.

public Box2 (float left, float top, float right, float bottom);
new OpenTK.Box2 : single * single * single * single -> OpenTK.Box2

Parameters

left
Single

The position of the left boundary.

top
Single

The position of the top boundary.

right
Single

The position of the right boundary.

bottom
Single

The position of the bottom boundary.

Applies to