Box2 Struct

Definition

Defines a 2d box (rectangle).

public struct Box2
type Box2 = struct
Inheritance
Box2

Constructors

Box2(Single, Single, Single, Single)

Constructs a new Box2 with the specified dimensions.

Box2(Vector2, Vector2)

Constructs a new Box2 with the specified dimensions.

Fields

Bottom

The bottom boundary of the structure.

Left

The left boundary of the structure.

Right

The right boundary of the structure.

Top

The top boundary of the structure.

Properties

Height

Gets a float describing the height of the Box2 structure.

Width

Gets a float describing the width of the Box2 structure.

Methods

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

Applies to