Point Struct

Summary

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

Syntax

public struct Point : ValueType

Constructors

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

Properties

Name Value Summary
X double
Gets the X position.
Y double
Gets the Y position.

Methods

Name Value Summary
Equals(object) bool
Checks for equality between a point and an object.
GetHashCode() int
Returns a hash code for a Point.
Parse(string, CultureInfo) 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

Extension Methods

Name Value Summary
ToSharpDX() RawVector2
ToSKPoint() SKPoint