Share via


PointF Struct

Definition

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

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

Constructors

PointF(Single, Single)
PointF(SizeF)
PointF(Vector2)

Fields

Zero

Represents a PointF with coordinates (0,0).

Properties

IsEmpty
X

Gets or sets the X-coordinate of this point.

Y

Gets or sets the Y-coordinate of this point.

Methods

Deconstruct(Single, Single)
Distance(PointF)
Equals(Object, Single)
Equals(Object)
GetHashCode()
Offset(Single, Single)
Round()
ToString()

Returns a string representation of this PointF.

TransformBy(Matrix3x2)
TryParse(String, PointF)

Operators

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

Extension Methods

Lerp(PointF, PointF, Double)
ToSKPoint(PointF)

Converts a PointF to a SkiaSharp SKPoint.

Applies to