PointF myPoint = new PointF(10.5f, 20.7f);
float x = myPoint.X; // x = 10.5 float y = myPoint.Y; // y = 20.7
PointF pt1 = new PointF(5.0f, 2.0f); PointF pt2 = new PointF(7.0f, 4.0f); PointF ptSum = PointF.Add(pt1, pt2); // ptSum = (12, 6)This example shows how to perform operations on PointF objects. In this case, we are adding two PointF objects together and saving the result in a third PointF object. The package/library that PointF comes in is the System.Drawing library.