Skip to main content

Struct Point

Represents a 2D point

Assembly: MicroGraphics.dll​
View Source​
Declaration
public struct Point

Properties​

Empty​

Get an empty / zero Point

View Source​
Declaration
public static Point Empty { get; }

X​

The X value

View Source​
Declaration
public int X { readonly get; set; }

Y​

The Y value

View Source​
Declaration
public int Y { readonly get; set; }

IsEmpty​

Is the point empty or 0

View Source​
Declaration
public bool IsEmpty { get; }

Methods​

From(Size)​

Create a Point from a size

View Source​
Declaration
public static Point From(Size size)
Returns​

Meadow.Foundation.Graphics.Point: A new Point who's x value is the width and y value is the height

Parameters​
TypeNameDescription
Meadow.Foundation.Graphics.SizesizeThe size

Offset(int, int)​

Offset the point

View Source​
Declaration
public void Offset(int x, int y)
Parameters​
TypeNameDescription
System.Int32xThe x amount to offset
System.Int32yThe y amount to offset

Offset(Point)​

Offset the point

View Source​
Declaration
public void Offset(Point point)
Parameters​
TypeNameDescription
Meadow.Foundation.Graphics.PointpointA Point containing the amount to offset

Equals(object)​

Indicates whether this instance is equal to the specified object

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

System.Boolean: True if both instances are equal otherwise false

Parameters​
TypeNameDescription
System.ObjectobjThe object instance to compare to

GetHashCode()​

Returns the hash code for this instance

View Source​
Declaration
public override int GetHashCode()
Returns​

System.Int32: An int that represents the hash code for this instance### ToString() Get a string representation of the point

View Source​
Declaration
public override string ToString()
Returns​

System.String: The x and y values as a string