C# Class OpenTK.Box2

Afficher le fichier Open project: prepare/HTML-Renderer Class Usage Examples

Méthodes publiques

Свойство Type Description
Bottom float
Left float
Right float
Top float

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

Box2() public méthode

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.
Résultat System

FromTLRB() public static méthode

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.
Résultat Box2

ToString() public méthode

Returns a System.String describing the current instance.
public ToString ( ) : string
Résultat string

Property Details

Bottom public_oe property

The bottom boundary of the structure.
public float Bottom
Résultat float

Left public_oe property

The left boundary of the structure.
public float Left
Résultat float

Right public_oe property

The right boundary of the structure.
public float Right
Résultat float

Top public_oe property

The top boundary of the structure.
public float Top
Résultat float