PointF.Explicit Operator

Definition

Overloads

Explicit(PointF to Vector2)

Converts the specified PointF to a Vector2.

Explicit(Vector2 to PointF)

Converts the specified Vector2 to a PointF.

Explicit(PointF to Vector2)

Source:
PointF.cs
Source:
PointF.cs
Source:
PointF.cs

Converts the specified PointF to a Vector2.

public static explicit operator System.Numerics.Vector2 (System.Drawing.PointF point);

Parameters

point
PointF

The point to convert from.

Returns

The vector that represents the converted PointF.

Applies to

.NET 9 and other versions
Product Versions
.NET 6, 7, 8, 9

Explicit(Vector2 to PointF)

Source:
PointF.cs
Source:
PointF.cs
Source:
PointF.cs

Converts the specified Vector2 to a PointF.

public static explicit operator System.Drawing.PointF (System.Numerics.Vector2 vector);

Parameters

vector
Vector2

The vector to convert.

Returns

The pair of coordinates that represents the converted Vector2.

Applies to

.NET 9 and other versions
Product Versions
.NET 6, 7, 8, 9