[]
        
(Showing Draft Content)

C1.Util.DX.Point2F

Point2F Struct

Structure specifing a point with float X and Y coordinates.

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

Constructors

Name Description
Point2F(Point2D)

Initializes a new instance of the Point2F struct.

Point2F(Point)

Initializes a new instance of the Point2F struct.

Point2F(PointF)

Initializes a new instance of the Point2F struct.

Point2F(float, float)

Initializes a new instance of the Point2F struct.

Fields

Name Description
Empty

An empty point.

SizeInBytes

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

Methods

Name Description
Distance(Point2F)

Gets the distance to the given point.

DistanceSquared(Point2F)

Gets the square of the distance to the given point.

Equals(Point2F)

Indicates whether this instance and a specified object are equal.

Equals(object)

Indicates whether this instance and a specified object are equal.

FromDips(Point2F, 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(Point2F)

Offsets the point by the specified amount.

Offset(Point2F, Point2F)

Offsets the point by the specified amount.

Offset(Point2F, Size2F)

Offsets the point by the specified amount.

Offset(Point2F, Vector2)

Offsets the point by the specified amount.

Offset(Point2F, float, float)

Offsets the point by the specified amount.

Offset(Size2F)

Offsets the point by the specified amount.

Offset(Vector2)

Offsets the point by the specified amount.

Offset(float, float)

Offsets the point by the specified amount.

Round()

Returns a Point2L with rounded X and Y coordinates.

Scale(Point2F, float)

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

Scale(Point2F, float, float)

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

Scale(float)

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

Scale(float, float)

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

ToDips(Point2F, float, float)

Converts a point from pixels to DIPs.

ToDips(float, float)

Converts a point from pixels to DIPs.

ToPoint()

Converts Point2F to C1.Win.Interop.Point.

ToPoint2D()

Converts Point2F to Point2D.

ToPointF()

Converts Point2F to PointF.

ToString()

Returns a string that represents the current object.

Transform(Matrix3x2)

Transforms a point by the 3x2 matrix.

Transform(Point2F, Matrix3x2)

Transforms a point by the 3x2 matrix.

TransformRef(ref Matrix3x2)

Transforms a point by the 3x2 matrix.

TransformRef(out Point2F, ref Point2F, ref Matrix3x2)

Transforms a point by the 3x2 matrix.

Truncate()

Returns a Point2L with truncated X and Y coordinates.

Operators

Name Description
operator +(Point2F, Point2F)

Returns the result of addition of point2 to point1.

operator +(Point2F, Size2F)

Returns the result of addition of size to point.

operator +(Point2F, Vector2)

Returns the result of addition of the given offset to the specified point.

operator ==(Point2F, Point2F)

Determines if the specified values are equal.

explicit operator Vector2(Point2F)

Performs an explicit conversion from Point2F to Vector2.

explicit operator Point(Point2F)

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

explicit operator PointF(Point2F)

Performs an explicit conversion from Point2F to PointF.

explicit operator Point2F(Vector2)

Performs an explicit conversion from Vector2 to Point2F.

explicit operator Point2F(Point)

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

explicit operator Point2F(PointF)

Performs an explicit conversion from PointF to Point2F.

operator !=(Point2F, Point2F)

Determines if the specified values are not equal.

operator -(Point2F, Point2F)

Returns the result of substruction of point2 from point1.

operator -(Point2F, Size2F)

Returns the result of substruction of size from point.

operator -(Point2F, Vector2)

Returns the result of substruction of the given vector from point.