Struct Point
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.dll
- API Level:
- 3
Represents a point in the 2D space.
C#Copypublic struct Point
Constructors
View Source
Point(Int32, Int32)
Initializes a new instance of the Point with the specified coordinates.
Declaration
C#Copypublic Point(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | X-axis coordinate of the point in the 2D space. |
System.Int32 | y | Y-axis coordinate of the point in the 2D space. |
API Level: 3
Properties
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 override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | A Object to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if the points are equal; otherwise, false. |
Overrides
System.ValueType.Equals(System.Object)
API Level: 3
Declaration
C#Copypublic override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code for this instance of Point. |
Overrides
System.ValueType.GetHashCode()
API Level: 3
Declaration
C#Copypublic override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |
Overrides
System.ValueType.ToString()
API Level: 3
Operators
Declaration
C#Copypublic static bool operator ==(Point point1, Point point2)
Parameters
Type | Name | Description |
---|---|---|
Point | point1 | A Point to compare. |
Point | point2 | A Point to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if the two instances of Point are equal; otherwise false. |
API Level: 3
Declaration
C#Copypublic static bool operator !=(Point point1, Point point2)
Parameters
Type | Name | Description |
---|---|---|
Point | point1 | A Point to compare. |
Point | point2 | A Point to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if the two instances of Point are not equal; otherwise false. |