Struct Point
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.dll
Represents a point in the 2D space.
public struct Point
Constructors
View SourcePoint(int, int)
Initializes a new instance of the Point with the specified coordinates.
Declaration
public Point(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
int | x | X-axis coordinate of the point in the 2D space. |
int | y | Y-axis coordinate of the point in the 2D space. |
Properties
View SourceX
Gets or sets the X-axis coordinate of the point in the 2D space.
Declaration
public int X { readonly get; set; }
Property Value
Type | Description |
---|---|
int |
Y
Gets or sets the Y-axis coordinate of the point in the 2D space.
Declaration
public int Y { readonly get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
View SourceEquals(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 |
---|---|
bool | true if the points are equal; otherwise, false. |
Overrides
GetHashCode()
Gets the hash code for this instance of Point.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | The hash code for this instance of Point. |
Overrides
ToString()
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
Operators
View Sourceoperator ==(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 |
---|---|
bool | true if the two instances of Point are equal; otherwise false. |
operator !=(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 |
---|---|
bool | true if the two instances of Point are not equal; otherwise false. |