Skip to main content

Point Structure

Defines a point.

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public readonly struct Point : IEquatable<Point>
InheritanceObjectValueType → Point
ImplementsIEquatable(Point)

Constructors

Point(Double, Double)Initializes a new instance of the Point structure.

Properties

XGets the X position.
YGets 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)

See Also

Reference

Avalonia Namespace