Box2 Box2 Struct

Definition

Defines a 2d box (rectangle).

public struct Box2
type Box2 = struct
Inheritance

Constructors

Box2(Vector2, Vector2) Box2(Vector2, Vector2)

Constructs a new Box2 with the specified dimensions.

Box2(Single, Single, Single, Single) Box2(Single, Single, Single, Single)

Constructs a new Box2 with the specified dimensions.

Fields

Bottom Bottom

The bottom boundary of the structure.

Left Left

The left boundary of the structure.

Right Right

The right boundary of the structure.

Top Top

The top boundary of the structure.

Properties

Height Height

Gets a float describing the height of the Box2 structure.

Width Width

Gets a float describing the width of the Box2 structure.

Methods

FromTLRB(Single, Single, Single, Single) FromTLRB(Single, Single, Single, Single)
ToString() ToString()

Applies to