C# Class Grafiti.CursorPoint

Represents a point in the surface where a finger is or was placed. It's directely related to the TuioCursor class.
Mostra file Open project: nuigroup/grafiti Class Usage Examples

Protected Properties

Property Type Description
m_motionSpeed float
m_sessionId int
m_state States
m_timestamp int
m_x float
m_xSpeed float

Public Methods

Method Description
CursorPoint ( int sessionId, float x, float y, States state ) : System
CursorPoint ( int sessionId, float x, float y, float xSpeed, float ySpeed, float motionSpeed, float motionAccel, int timestamp, States state ) : System
SquareDistance ( CursorPoint cursor ) : float
SquareDistance ( float x, float y ) : float

Method Details

CursorPoint() public method

public CursorPoint ( int sessionId, float x, float y, States state ) : System
sessionId int
x float
y float
state States
return System

CursorPoint() public method

public CursorPoint ( int sessionId, float x, float y, float xSpeed, float ySpeed, float motionSpeed, float motionAccel, int timestamp, States state ) : System
sessionId int
x float
y float
xSpeed float
ySpeed float
motionSpeed float
motionAccel float
timestamp int
state States
return System

SquareDistance() public method

public SquareDistance ( CursorPoint cursor ) : float
cursor CursorPoint
return float

SquareDistance() public method

public SquareDistance ( float x, float y ) : float
x float
y float
return float

Property Details

m_motionSpeed protected_oe property

protected float m_motionSpeed
return float

m_sessionId protected_oe property

protected int m_sessionId
return int

m_state protected_oe property

protected States m_state
return States

m_timestamp protected_oe property

protected int m_timestamp
return int

m_x protected_oe property

protected float m_x
return float

m_xSpeed protected_oe property

protected float m_xSpeed
return float