Struct Point
Represents a point in the 2D space.
Inherited Members
Namespace: Tizen.Multimedia
Assembly: Tizen.Multimedia.dll
Syntax
public struct Point
Constructors
Point(Int32, Int32)
Initializes a new instance of the Point with the specified coordinates.
Declaration
public Point(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
Int32 | x | X-axis coordinate of the point in the 2D space. |
Int32 | y | Y-axis coordinate of the point in the 2D space. |
API Version
3Properties
X
Gets or sets the X-axis coordinate of the point in the 2D space.
Declaration
public int X { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Version
3Y
Gets or sets the Y-axis coordinate of the point in the 2D space.
Declaration
public int Y { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Version
3Methods
Equals(Object)
Compares an object to an instance of Point for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | A Object to compare. |
Returns
Type | Description |
---|---|
Boolean | true if the points are equal; otherwise, false. |
Overrides
API Version
3GetHashCode()
Gets the hash code for this instance of Point.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The hash code for this instance of Point. |
Overrides
API Version
3ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string that represents the current object. |
Overrides
API Version
3Operators
Equality(Point, Point)
Compares two instances of Point for equality.
Declaration
public 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 |
---|---|
Boolean | true if the two instances of Point are equal; otherwise false. |
API Version
3Inequality(Point, Point)
Compares two instances of Point for inequality.
Declaration
public 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 |
---|---|
Boolean | true if the two instances of Point are not equal; otherwise false. |