Bearbeiten

Box2 Struct

Definition

Defines a 2d box (rectangle).

public struct Box2
type Box2 = struct
Inheritance
Box2

Constructors

Name Description
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

Name Description
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

Name Description
Height

Gets a float describing the height of the Box2 structure.

Width

Gets a float describing the width of the Box2 structure.

Methods

Name Description
FromTLRB(Single, Single, Single, Single)
ToString()

Applies to