Point Structure

Defines a point.

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public readonly struct Point : IEquatable<Point>
Inheritance
Object    ValueType    Point
Implements
IEquatablePoint

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 ValueTypeEquals(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 ValueTypeGetHashCode)
GetTypeGets 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 ValueTypeToString)
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.
(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

See Also