Class Position2D
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
Position2D is a two-dimensional vector.
C#Copypublic class Position2D : Disposable, IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
Declaration
C#Copypublic Position2D()
API Level: 3
Declaration
C#Copypublic Position2D(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | x component |
System.Int32 | y | y component |
API Level: 3
Declaration
C#Copypublic Position2D(Position position)
Parameters
Type | Name | Description |
---|---|---|
Position | position | Position to create this vector from |
API Level: 3
Fields
Declaration
C#Copyprotected bool swigCMemOwn
Field Value
Type | Description |
---|---|
System.Boolean |
API Level: 3
Properties
Declaration
C#Copypublic float this[uint index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | index | The subscript index. |
Property Value
Type | Description |
---|---|
Single | The float at the given index. |
API Level: 3
Declaration
C#Copypublic int X { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: 3
Declaration
C#Copypublic int Y { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: 3
Methods
Declaration
C#Copypublic static Position2D ConvertFromString(String value)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.String | value | The string to convert. |
Returns
Type | Description |
---|---|
Position2D | The converted value. |
Declaration
C#Copyprotected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type | The dispose type. |
Overrides
API Level: 3
Declaration
C#Copypublic override bool Equals(Object obj)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified object is equal to the current object; otherwise, false. |
Declaration
C#Copypublic bool EqualTo(Position2D rhs)
Parameters
Type | Name | Description |
---|---|---|
Position2D | rhs | The vector to compare |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the two vectors are equal, otherwise false |
API Level: 3
Declaration
C#Copypublic override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The Hash Code. |
Overrides
API Level: 6
Declaration
C#Copypublic bool NotEqualTo(Position2D rhs)
Parameters
Type | Name | Description |
---|---|---|
Position2D | rhs | The vector to compare. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the two vectors are not equal, otherwise false. |
API Level: 3
Operators
Declaration
C#Copypublic static Position2D operator +(Position2D arg1, Position2D arg2)
Parameters
Type | Name | Description |
---|---|---|
Position2D | arg1 | The vector to add. |
Position2D | arg2 | The vector to add. |
Returns
Type | Description |
---|---|
Position2D | The vector containing the result of the addition. |
API Level: 3
Declaration
C#Copypublic static Position2D operator /(Position2D arg1, int arg2)
Parameters
Type | Name | Description |
---|---|---|
Position2D | arg1 | The vector to divide. |
System.Int32 | arg2 | The integer value to scale the vector by. |
Returns
Type | Description |
---|---|
Position2D | The vector containing the result of the division. |
API Level: 3
Declaration
C#Copypublic static Position2D operator /(Position2D arg1, Position2D arg2)
Parameters
Type | Name | Description |
---|---|---|
Position2D | arg1 | The vector to divide. |
Position2D | arg2 | The vector to divide. |
Returns
Type | Description |
---|---|
Position2D | The vector containing the result of the division. |
API Level: 3
Declaration
C#Copypublic static implicit operator Vector2(Position2D position2d)
Parameters
Type | Name | Description |
---|---|---|
Position2D | position2d | An object of the Position2D type. |
Returns
Type | Description |
---|---|
Vector2 | return an object of the Vector2 type |
API Level: 3
Declaration
C#Copypublic static implicit operator Position2D(Vector2 vec)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | vec | An object of the Vector2 type. |
Returns
Type | Description |
---|---|
Position2D | return an object of the Position2D type |
API Level: 3
Declaration
C#Copypublic static implicit operator Position2D(String value)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.String | value |
Returns
Type | Description |
---|---|
Position2D |
Declaration
C#Copypublic static Position2D operator *(Position2D arg1, int arg2)
Parameters
Type | Name | Description |
---|---|---|
Position2D | arg1 | The vector to multiply. |
System.Int32 | arg2 | The integer value to scale the vector. |
Returns
Type | Description |
---|---|
Position2D | The vector containing the result of the multiplication. |
API Level: 3
Declaration
C#Copypublic static Position2D operator *(Position2D arg1, Position2D arg2)
Parameters
Type | Name | Description |
---|---|---|
Position2D | arg1 | The vector to multiply. |
Position2D | arg2 | The vector to multiply. |
Returns
Type | Description |
---|---|
Position2D | The vector containing the result of the multiplication. |
API Level: 3
Declaration
C#Copypublic static Position2D operator -(Position2D arg1, Position2D arg2)
Parameters
Type | Name | Description |
---|---|---|
Position2D | arg1 | The vector to subtract. |
Position2D | arg2 | The vector to subtract. |
Returns
Type | Description |
---|---|
Position2D | The vector containing the result of the subtraction. |
API Level: 3
Declaration
C#Copypublic static Position2D operator -(Position2D arg1)
Parameters
Type | Name | Description |
---|---|---|
Position2D | arg1 | The vector to negate. |
Returns
Type | Description |
---|---|
Position2D | The vector containing the negation. |