[]
        
(Showing Draft Content)

C1.Util.DX.Point2D

Point2D Struct

Structure specifing a point with double X and Y coordinates.

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

Constructors

Name Description
Point2D(Point2F)

Initializes a new instance of the Point2D struct.

Point2D(Point)

Initializes a new instance of the Point2D struct.

Point2D(double, double)

Initializes a new instance of the Point2D struct.

Point2D(PointF)

Initializes a new instance of the Point2D struct.

Fields

Name Description
Empty

An empty point.

SizeInBytes

The size of the Point2D 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 Point2D are equal to zero.

Methods

Name Description
Distance(Point2D)

Gets the distance to the given point.

DistanceSquared(Point2D)

Gets the square of the distance to the given point.

Equals(Point2D)

Indicates whether this instance and a specified object are equal.

Equals(object)

Indicates whether this instance and a specified object are equal.

FromDips(Point2D, float, float)

Converts a point from DIPs to pixels.

FromDips(float, float)

Converts a point from DIPs to pixels.

GetHashCode()

Returns a hash code for this instance.

Offset(Point2D)

Offsets the point by the specified amount.

Offset(Point2D, Point2D)

Offsets the point by the specified amount.

Offset(Point2D, Size2D)

Offsets the point by the specified amount.

Offset(Point2D, double, double)

Offsets the point by the specified amount.

Offset(Size2D)

Offsets the point by the specified amount.

Offset(double, double)

Offsets the point by the specified amount.

Round()

Returns a Point2L with rounded X and Y coordinates.

Scale(Point2D, double)

Scales X and Y coordinates of a point by the specified scaleFactor.

Scale(Point2D, double, double)

Scales X and Y coordinates of a point by the specified scaleX and scaleY.

Scale(double)

Scales X and Y coordinates of a point by the specified scaleFactor.

Scale(double, double)

Scales X and Y coordinates of a point by the specified scaleX and scaleY.

ToDips(Point2D, float, float)

Converts a point from pixels to DIPs.

ToDips(float, float)

Converts a point from pixels to DIPs.

ToPoint()

Converts Point2D to C1.Win.Interop.Point.

ToPoint2F()

Converts Point2D to Point2F.

ToPointF()

Converts Point2D to PointF.

ToString()

Returns a string that represents the current object.

Truncate()

Returns a Point2L with truncated X and Y coordinates.

Operators

Name Description
operator +(Point2D, Point2D)

Returns the result of addition of point2 to point1.

operator +(Point2D, Size2D)

Returns the result of addition of size to point.

operator ==(Point2D, Point2D)

Determines if the specified values are equal.

explicit operator Point(Point2D)

Performs an explicit conversion from Point2D to C1.Win.Interop.Point.

explicit operator Point2D(Point)

Performs an explicit conversion from C1.Win.Interop.Point to Point2D.

operator !=(Point2D, Point2D)

Determines if the specified values are not equal.

operator -(Point2D, Point2D)

Returns the result of substruction of point2 from point1.

operator -(Point2D, Size2D)

Returns the result of substruction of size from point.