Tobii Pro SDK Unity API
Tobii.Research.DisplayArea Class Reference

Represents the three coordinates in space corresponding to the top left, bottom left, and top right corners of the active display area. More...

Inheritance diagram for Tobii.Research.DisplayArea:

Public Member Functions

 DisplayArea (Point3D topLeft, Point3D bottomLeft, Point3D topRight)
 Initializes a new instance of the DisplayArea class given top left, bottom left, and top right coordinates. More...
 
bool Equals (DisplayArea other)
 Checks if this DisplayArea is equal to another DisplayArea . More...
 
override bool Equals (object obj)
 Checks if this DisplayArea is equal to another DisplayArea . More...
 
override int GetHashCode ()
 Returns a hash code for this object. This is used internally in collections. More...
 

Static Public Member Functions

static bool operator== (DisplayArea obj1, DisplayArea obj2)
 Checks if two DisplayArea objects are equal. More...
 
static bool operator!= (DisplayArea obj1, DisplayArea obj2)
 Checks if two DisplayArea objects are not equal. More...
 

Properties

Point3D BottomLeft [get, set]
 Gets or sets the bottom left corner of the active display area. More...
 
Point3D BottomRight [get]
 Gets the bottom right corner of the active display area. More...
 
float Height [get]
 Gets the height in millimeters of the active display area. More...
 
Point3D TopLeft [get, set]
 Gets or sets the top left corner of the active display area. More...
 
Point3D TopRight [get, set]
 Gets or sets the top right corner of the active display area. More...
 
float Width [get]
 Gets the width in millimeters of the active display area. More...
 

Detailed Description

Represents the three coordinates in space corresponding to the top left, bottom left, and top right corners of the active display area.

Constructor & Destructor Documentation

Tobii.Research.DisplayArea.DisplayArea ( Point3D  topLeft,
Point3D  bottomLeft,
Point3D  topRight 
)
inline

Initializes a new instance of the DisplayArea class given top left, bottom left, and top right coordinates.

Parameters
topLeftThe top left coordinate
bottomLeftThe bottom left coordinate
topRightThe top right coordinate

Member Function Documentation

bool Tobii.Research.DisplayArea.Equals ( DisplayArea  other)
inline

Checks if this DisplayArea is equal to another DisplayArea .

Parameters
otherOther DisplayArea to check.
Returns
True if other equals this.
override bool Tobii.Research.DisplayArea.Equals ( object  obj)
inline

Checks if this DisplayArea is equal to another DisplayArea .

Parameters
objOther DisplayArea to check.
Returns
True if obj equals this.
override int Tobii.Research.DisplayArea.GetHashCode ( )
inline

Returns a hash code for this object. This is used internally in collections.

Returns
A hash code.
static bool Tobii.Research.DisplayArea.operator!= ( DisplayArea  obj1,
DisplayArea  obj2 
)
inlinestatic

Checks if two DisplayArea objects are not equal.

Parameters
obj1First DisplayArea.
obj2Second DisplayArea.
Returns
True if the DisplayArea objects are not equal.
static bool Tobii.Research.DisplayArea.operator== ( DisplayArea  obj1,
DisplayArea  obj2 
)
inlinestatic

Checks if two DisplayArea objects are equal.

Parameters
obj1First DisplayArea.
obj2Second DisplayArea.
Returns
True if the DisplayArea objects are equal.

Property Documentation

Point3D Tobii.Research.DisplayArea.BottomLeft
getset

Gets or sets the bottom left corner of the active display area.

Point3D Tobii.Research.DisplayArea.BottomRight
get

Gets the bottom right corner of the active display area.

float Tobii.Research.DisplayArea.Height
get

Gets the height in millimeters of the active display area.

Point3D Tobii.Research.DisplayArea.TopLeft
getset

Gets or sets the top left corner of the active display area.

Point3D Tobii.Research.DisplayArea.TopRight
getset

Gets or sets the top right corner of the active display area.

float Tobii.Research.DisplayArea.Width
get

Gets the width in millimeters of the active display area.