Point Struct

Summary

Defines a point.
Namespace
Avalonia
Interfaces
Base Types
  • object
  • ValueType
graph BT Type-->Base0["ValueType"] Base0-->Base1["object"] Type-.->Interface0["IEquatable<Point>"] Type["Point"] class Type type-node

Syntax

public readonly struct Point : ValueType, IEquatable<Point>

Constructors

Name Summary
Point(double, double) Initializes a new instance of the Point structure.

Properties

Name Value Summary
IsDefault bool
Gets a value indicating whether the X and Y coordinates are zero.
X double
Gets the X position.
Y double
Gets the Y position.

Methods

Name Value Summary
Deconstruct(double, double) void
Deconstructs the point into its X and Y coordinates.
Equals(object) bool
Checks for equality between a point and an object.
Equals(Point) bool
Returns a boolean indicating whether the point is equal to the other given point.
GetHashCode() int
Returns a hash code for a Point.
Parse(string) Point
Parses a Point string.
static
ToString() string
Returns the string representation of the point.
Transform(Matrix) Point
Transforms the point by a matrix.
WithX(double) Point
Returns a new point with the specified X coordinate.
WithY(double) Point
Returns a new point with the specified Y coordinate.

Operators

Name Value Summary
implicit operator Vector(Point) Vector
operator !=(Point, Point) bool
operator -(Point) Point
operator -(Point, Point) Point
operator -(Point, Vector) Point
operator *(double, Point) Point
operator *(Point, double) Point
operator *(Point, Matrix) Point
operator /(Point, double) Point
operator +(Point, Point) Point
operator +(Point, Vector) Point
operator ==(Point, Point) bool