Table of Contents

Struct PointF

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Represents an ordered pair of x and y coordinates that define a point in a two-dimensional plane.

public struct PointF : IEquatable<PointF>
Implements
Inherited Members

Constructors

PointF(float, float)

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

Fields

Empty

Creates a new instance of the PointF class with member data left uninitialized.

Properties

IsEmpty

Gets a value indicating whether this PointF is empty.

X

Gets the x-coordinate of this PointF.

Y

Gets the y-coordinate of this PointF.

Methods

Add(PointF, Size)

Translates a PointF by a given Size .

Add(PointF, SizeF)

Translates a PointF by a given SizeF .

Equals(object)

Compares two PointF objects. The result specifies whether the values of the X and Y properties of the two PointF objects are equal.

Equals(PointF)

Compares two PointF objects. The result specifies whether the values of the X and Y properties of the two PointF objects are equal.

GetHashCode()

Generates a hashcode from the X and Y components

Subtract(PointF, Size)

Translates a PointF by the negative of a given Size .

Subtract(PointF, SizeF)

Translates a PointF by the negative of a given SizeF .

ToString()

Returns a string including the X and Y values

Operators

operator +(PointF, Size)

Translates a PointF by a given Size .

operator +(PointF, SizeF)

Translates a PointF by a given SizeF .

operator ==(PointF, PointF)

Compares two PointF objects. The result specifies whether the values of the X and Y properties of the two PointF objects are equal.

operator !=(PointF, PointF)

Compares two PointF objects. The result specifies whether the values of the X or Y properties of the two PointF objects are unequal.

operator -(PointF, Size)

Translates a PointF by the negative of a given Size .

operator -(PointF, SizeF)

Translates a PointF by the negative of a given SizeF .