Edit

Share via


PointF Constructors

Definition

Overloads

PointF(Vector2)

Initializes a new instance of the PointF struct from the specified Vector2.

PointF(Single, Single)

Initializes a new instance of the PointF class with the specified coordinates.

PointF(Vector2)

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

Initializes a new instance of the PointF struct from the specified Vector2.

C#
public PointF(System.Numerics.Vector2 vector);

Parameters

vector
Vector2

The source vector.

Applies to

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

PointF(Single, Single)

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

Initializes a new instance of the PointF class with the specified coordinates.

C#
public PointF(float x, float y);

Parameters

x
Single

The horizontal position of the point.

y
Single

The vertical position of the point.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1