Skip to main content

Struct PointF

Represents a 2D point with floating-point coordinates

Assembly: MicroGraphics.dll
View Source
Declaration
public struct PointF

Properties

Empty

Gets an empty point at (0, 0)

View Source
Declaration
public static PointF Empty { get; }

X

The X value

View Source
Declaration
public float X { readonly get; set; }

Y

The Y value

View Source
Declaration
public float Y { readonly get; set; }

IsEmpty

Indicates whether the point is at (0, 0)

View Source
Declaration
public bool IsEmpty { get; }

Methods

From(SizeF)

Creates a PointF from a SizeF

View Source
Declaration
public static PointF From(SizeF size)
Returns

Meadow.Foundation.Graphics.PointF: A new PointF with X and Y from the SizeF

Parameters
TypeNameDescription
System.Drawing.SizeFsizeThe SizeF instance

Offset(float, float)

Offsets the point by specified amounts

View Source
Declaration
public void Offset(float x, float y)
Parameters
TypeNameDescription
System.SinglexThe amount to offset X
System.SingleyThe amount to offset Y

Offset(PointF)

Offsets the point by another PointF

View Source
Declaration
public void Offset(PointF point)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.PointFpointThe PointF to offset by

Equals(object)

Checks if this instance is equal to another object

View Source
Declaration
public override bool Equals(object obj)
Returns

System.Boolean

Parameters
TypeName
System.Objectobj

GetHashCode()

Gets the hash code for this instance

View Source
Declaration
public override int GetHashCode()
Returns

System.Int32

ToString()

Returns a string representation of the point

View Source
Declaration
public override string ToString()
Returns

System.String