C# Class OpenTK.Box2

Show file Open project: prepare/HTML-Renderer Class Usage Examples

Public Properties

Property Type Description
Bottom float
Left float
Right float
Top float

Public Methods

Method Description
Box2 ( System.Vector2 topLeft, System.Vector2 bottomRight ) : System

Constructs a new Box2 with the specified dimensions.

Box2 ( float left, float top, float right, float bottom ) : System

Constructs a new Box2 with the specified dimensions.

FromTLRB ( float top, float left, float right, float bottom ) : Box2

Creates a new Box2 with the specified dimensions.

ToString ( ) : string

Returns a System.String describing the current instance.

Method Details

Box2() public method

Constructs a new Box2 with the specified dimensions.
public Box2 ( System.Vector2 topLeft, System.Vector2 bottomRight ) : System
topLeft System.Vector2 AnOpenTK.Vector2 describing the top-left corner of the Box2.
bottomRight System.Vector2 An OpenTK.Vector2 describing the bottom-right corner of the Box2.
return System

Box2() public method

Constructs a new Box2 with the specified dimensions.
public Box2 ( float left, float top, float right, float bottom ) : System
left float The position of the left boundary.
top float The position of the top boundary.
right float The position of the right boundary.
bottom float The position of the bottom boundary.
return System

FromTLRB() public static method

Creates a new Box2 with the specified dimensions.
public static FromTLRB ( float top, float left, float right, float bottom ) : Box2
top float The position of the top boundary.
left float The position of the left boundary.
right float The position of the right boundary.
bottom float The position of the bottom boundary.
return Box2

ToString() public method

Returns a System.String describing the current instance.
public ToString ( ) : string
return string

Property Details

Bottom public property

The bottom boundary of the structure.
public float Bottom
return float

Left public property

The left boundary of the structure.
public float Left
return float

Right public property

The right boundary of the structure.
public float Right
return float

Top public property

The top boundary of the structure.
public float Top
return float