[]
        
(Showing Draft Content)

C1.Util.DX.Point2L

Point2L Struct

Structure specifing a point with integer X and Y coordinates.

Implements
Namespace: C1.Util.DX
Assembly: C1.Win.C1DX.4.8.dll
Syntax
public struct Point2L : IEquatable<Point2L>

Constructors

Name Description
Point2L(Point)

Initializes a new instance of the Point2L struct.

Point2L(int, int)

Initializes a new instance of the Point2L struct.

Fields

Name Description
Empty

An empty point.

SizeInBytes

The size of the Point2L type, in bytes.

X

The X coordinate of the point.

Y

The Y coordinate of the point.

Properties

Name Description
IsEmpty

Determines if all components of Point2L are equal to zero.

Methods

Name Description
Equals(Point2L)

Indicates whether this instance and a specified object are equal.

Equals(object)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns a hash code for this instance.

Offset(Point2L)

Offsets the point by the specified amount.

Offset(Point2L, Point2L)

Offsets the point by the specified amount.

Offset(Point2L, Size2L)

Offsets the point by the specified amount.

Offset(Point2L, int, int)

Offsets the point by the specified amount.

Offset(Size2L)

Offsets the point by the specified amount.

Offset(int, int)

Offsets the point by the specified amount.

ToPoint()

Converts Point2L to Point.

ToPoint2D()

Converts Point2L to Point2D.

ToPoint2F()

Converts Point2L to Point2F.

ToString()

Returns a string that represents the current object.

Operators

Name Description
operator +(Point2L, Point2L)

Returns the result of addition of point2 to point1.

operator +(Point2L, Size2L)

Returns the result of addition of size to point.

operator ==(Point2L, Point2L)

Determines if the specified values are equal.

explicit operator Point(Point2L)

Performs an explicit conversion from Point2L to Point.

explicit operator Point2L(Point)

Performs an explicit conversion from Point to Point2L.

operator !=(Point2L, Point2L)

Determines if the specified values are not equal.

operator -(Point2L, Point2L)

Returns the result of substruction of point2 from point1.

operator -(Point2L, Size2L)

Returns the result of substruction of size from point.