Point

Overview

Point is a class in Aspose.PDF FOSS for .NET.

Represents a point in 2D space.

This class provides 5 methods for working with Point objects in .NET programs. Available methods include: Distance, NearEqual, Point, ToPoint, ToString. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Trivial, X, Y.

Properties

NameTypeAccessDescription
XdoubleRead/WriteGets or sets the x.
YdoubleRead/WriteGets or sets the y.
TrivialPointReadOrigin point (0, 0).

Methods

SignatureDescription
Point(x: double, y: double)Calls Point on this Point instance.
NearEqual(other: Point, delta: double)Checks whether this point is approximately equal to another within a given tolerance.
Distance(point1: Point, point2: Point)Euclidean distance between two points.
ToPoint()Convert to a PointF.
ToString()Calls ToString on this Point instance.

See Also