Point Structure
Defines a point.
Definition
Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public readonly struct Point : IEquatable<Point>
Public Structure Point
Implements IEquatable(Of Point)
[<SealedAttribute>]
type Point =
struct
inherit ValueType
interface IEquatable<Point>
end
Inheritance | Object → ValueType → Point |
Implements | IEquatable(Point) |
Constructors
Point(Double, Double) | Initializes a new instance of the Point structure. |
Properties
X | Gets the X position. |
Y | Gets the Y position. |
Methods
Deconstruct(Double, Double) | Deconstructs the point into its X and Y coordinates. |
Distance(Point, Point) | Computes the Euclidean distance between the two given points. |
Equals(Object) | Checks for equality between a point and an object. (Overrides ValueType.Equals(Object)) |
Equals(Point) | Returns a boolean indicating whether the point is equal to the other given point (bitwise). |
GetHashCode() | Returns a hash code for a Point. (Overrides ValueType.GetHashCode()) |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
NearlyEquals(Point) | Returns a boolean indicating whether the point is equal to the other given point (numerically). |
Parse(String) | Parses a Point string. |
ToString() | Returns the string representation of the point. (Overrides ValueType.ToString()) |
Transform(Matrix) | Transforms the point by a matrix. |
WithX(Double) | Returns a new point with the specified X coordinate. |
WithY(Double) | Returns a new point with the specified Y coordinate. |
Operators
Addition(Point, Point) | Adds two points. |
Addition(Point, Vector) | Adds a vector to a point. |
Division(Point, Double) | Divides a point by a factor coordinate-wise |
Equality(Point, Point) | Checks for equality between two Points. |
Implicit(Point to Vector) | Converts the Point to a Vector. |
Inequality(Point, Point) | Checks for inequality between two Points. |
Multiply(Double, Point) | Multiplies a point by a factor coordinate-wise |
Multiply(Point, Matrix) | Applies a matrix to a point. |
Multiply(Point, Double) | Multiplies a point by a factor coordinate-wise |
Subtraction(Point, Point) | Subtracts two points. |
Subtraction(Point, Vector) | Subtracts a vector from a point. |
UnaryNegation(Point) | Negates a point. |
Extension Methods
ToSKPoint() | (Defined by SkiaSharpExtensions) |