Share via


Point Struct

Definition

Represents a point in 2D space using double-precision floating-point coordinates.

public value class Point
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Graphics.Converters.PointTypeConverter))]
public struct Point
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Graphics.Converters.PointTypeConverter))>]
type Point = struct
Public Structure Point
Inheritance
Point
Attributes

Constructors

Name Description
Point(Double, Double)
Point(Size)
Point(SizeF)
Point(Vector2)

Fields

Name Description
Zero

Represents a Point with coordinates (0,0).

Properties

Name Description
IsEmpty
X

Gets or sets the X-coordinate of this point.

Y

Gets or sets the Y-coordinate of this point.

Methods

Name Description
Deconstruct(Double, Double)
Distance(Point)
Equals(Object, Double)
Equals(Object)
GetHashCode()
Offset(Double, Double)
Round()
ToString()

Returns a string representation of this Point.

TryParse(String, Point)

Operators

Name Description
Addition(Point, SizeF)
Equality(Point, Point)
Explicit(Point to Size)
Implicit(Point to PointF)
Implicit(Vector2 to Point)
Inequality(Point, Point)
Subtraction(Point, Point)
Subtraction(Point, SizeF)

Extension Methods

Name Description
Lerp(Point, Point, Double)

Applies to