Struct TouchLocation
Represents a touch location.
Implements
Inherited Members
Namespace: Evergine.Common.Input
Assembly: Evergine.Common.dll
Syntax
public struct TouchLocation : IEquatable<TouchLocation>
Constructors
TouchLocation(int, TouchLocationState, float, float, bool)
Initializes a new instance of the TouchLocation struct.
Declaration
public TouchLocation(int id, TouchLocationState state, float x, float y, bool isNew)
Parameters
Type | Name | Description |
---|---|---|
int | id | The id. |
TouchLocationState | state | The state. |
float | x | The x. |
float | y | The y. |
bool | isNew | if set to |
Fields
Id
Touch ID.
Declaration
public int Id
Field Value
Type | Description |
---|---|
int |
IsNew
If the point is new or it previously existing.
Declaration
public bool IsNew
Field Value
Type | Description |
---|---|
bool |
Position
Touch position.
Declaration
public Vector2 Position
Field Value
Type | Description |
---|---|
Vector2 |
State
Touch state.
Declaration
public TouchLocationState State
Field Value
Type | Description |
---|---|
TouchLocationState |
Methods
Equals(TouchLocation)
Equalses the specified other.
Declaration
public bool Equals(TouchLocation other)
Parameters
Type | Name | Description |
---|---|---|
TouchLocation | other | The other. |
Returns
Type | Description |
---|---|
bool | The result. |
Equals(object)
Determines whether the specified object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with this instance. |
Returns
Type | Description |
---|---|
bool |
|
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
Operators
operator ==(TouchLocation, TouchLocation)
Implements the operator ==.
Declaration
public static bool operator ==(TouchLocation t1, TouchLocation t2)
Parameters
Type | Name | Description |
---|---|---|
TouchLocation | t1 | The t1. |
TouchLocation | t2 | The t2. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |
operator !=(TouchLocation, TouchLocation)
Implements the operator !=.
Declaration
public static bool operator !=(TouchLocation t1, TouchLocation t2)
Parameters
Type | Name | Description |
---|---|---|
TouchLocation | t1 | The t1. |
TouchLocation | t2 | The t2. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |