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

Provides properties for the gaze point. More...

Inheritance diagram for Tobii.Research.GazePoint:

Public Member Functions

 GazePoint (NormalizedPoint2D positionOnDisplayArea, Point3D positionInUserCoordinates, Validity validity)
 Initializes a new instance of the GazePoint class given data for all members. More...
 
bool Equals (GazePoint other)
 Checks if this object is equal to another GazePoint . More...
 
override bool Equals (object obj)
 Checks if this point is equal to another GazePoint . 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== (GazePoint obj1, GazePoint obj2)
 Checks if two GazePoint objects are equal. More...
 
static bool operator!= (GazePoint obj1, GazePoint obj2)
 Checks if two GazePoint objects are not equal. More...
 

Properties

NormalizedPoint2D PositionOnDisplayArea [get]
 Gets the gaze point position in 2D on the active display area. More...
 
Point3D PositionInUserCoordinates [get]
 Gets the gaze point position in 3D in the user coordinate system. More...
 
Validity Validity [get]
 Gets the validity of the gaze point data. More...
 

Detailed Description

Provides properties for the gaze point.

Constructor & Destructor Documentation

Tobii.Research.GazePoint.GazePoint ( NormalizedPoint2D  positionOnDisplayArea,
Point3D  positionInUserCoordinates,
Validity  validity 
)
inline

Initializes a new instance of the GazePoint class given data for all members.

Parameters
positionOnDisplayAreaThe gaze point position in 2D on the active display area.
positionInUserCoordinatesThe gaze point position in 3D in the user coordinate system.
validityThe validity of the gaze point data.

Member Function Documentation

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

Checks if this object is equal to another GazePoint .

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

Checks if this point is equal to another GazePoint .

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

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

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

Checks if two GazePoint objects are not equal.

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

Checks if two GazePoint objects are equal.

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

Property Documentation

Point3D Tobii.Research.GazePoint.PositionInUserCoordinates
get

Gets the gaze point position in 3D in the user coordinate system.

NormalizedPoint2D Tobii.Research.GazePoint.PositionOnDisplayArea
get

Gets the gaze point position in 2D on the active display area.

Validity Tobii.Research.GazePoint.Validity
get

Gets the validity of the gaze point data.