Skip to end of metadata
Go to start of metadata

Represents a struct for point (integer).

Definition

public struct PointI

Summary

The following table summarizes the members exposed in this structure.

Public Constructors

PointI Constructor(int, int) Create an instance of PointI.
PointI Constructor(SizeI) Create an instance of PointI.

Public Properties

IsEmpty Gets the value indicating whether the struct is empty.
X Gets or sets the X-coordinate value.
Y Gets or sets the Y-coordinate value.

Static Methods

Add(PointI, SizeI) Adds points.
Ceiling(PointF) Returns the smallest integral value greater than or equal to the specified double-precision floating-point number.
Round(PointF) Rounds a double-precision floating-point value to the nearest integral value.
Subtract(PointI, SizeI) Substracts points.
Truncate(PointF) Convert to integer value.

Public Methods

Equals(object) Returns a value indicating whether this instance and a specified border object represent the same value.
GetHashCode() Returns the hash code for this instance.
Offset(int, int) Add offset.
Offset(PointI) Add offset.
ToString() Returns a string that represents the current object.

Public Constructors

public PointI(int x, int y)

Create an instance of PointI.

Parameters

x The X-coordinate value.
y The Y-coordinate value.

public PointI(SizeI size)

Create an instance of PointI.

Parameters

size The point size.

Public Properties

public bool IsEmpty { get; }

Gets the value indicating whether the struct is empty.

public int X { get; set; }

Gets or sets the X-coordinate value.

public int Y { get; set; }

Gets or sets the Y-coordinate value.

Static Methods

public static PointI Add(PointI pt, SizeI sz)

Adds points.

Parameters

pt The first point.
sz The second point.

Return Types

The result point.

public static PointI Ceiling(PointF value)

Returns the smallest integral value greater than or equal to the specified double-precision floating-point number.

Parameters

value The point.

Return Types

The result point.

public static PointI Round(PointF value)

Rounds a double-precision floating-point value to the nearest integral value.

Parameters

value The point.

Return Types

The result point.

public static PointI Subtract(PointI pt, SizeI sz)

Substracts points.

Parameters

pt The first point.
sz The second point.

Return Types

The result point.

public static PointI Truncate(PointF value)

Convert to integer value.

Parameters

value

Public Methods

public bool Equals(object obj)

Returns a value indicating whether this instance and a specified border object represent the same value.

Parameters

obj A border object to compare to this instance.

Return Types

true if obj is equal to this instance; otherwise, false.

public int GetHashCode()

Returns the hash code for this instance.

Return Types

A 32-bit signed integer that is the hash code for this instance.

public void Offset(int dx, int dy)

Add offset.

Parameters

dx The X-coordinate value.
dy The Y-coordinate value.

public void Offset(PointI p)

Add offset.

Parameters

p The point.

public string ToString()

Returns a string that represents the current object.

Return Types

A string that represents the current object.
  • No labels