Click or drag to resize

PointF Methods

The PointF type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAbs
Returns the absolute X and Y components of the specified point
Public methodAngleTo
Gets the angle of the width/height as a vector from the specified destination.
Public methodDistance(PointF)
Gets the distance between this point and the specified point
Public methodStatic memberDistance(PointF, PointF)
Gets the distance between two points using pythagoras theorem
Public methodDotProduct(PointF)
Gets the dot product of this instance and the specified point
Public methodStatic memberDotProduct(PointF, PointF)
Gets the dot product between two points
Public methodEquals(Object)
Returns a value indicating that the specified obj is equal to this point
(Overrides ValueTypeEquals(Object).)
Public methodEquals(PointF)
Returns a value indicating that the specified other point is equal to this point
Public methodGetHashCode
Gets the hash code of this point
(Overrides ValueTypeGetHashCode.)
Public methodLengthTo
Gets the length between this point and the destination point.
Public methodStatic memberMax
Returns the maximum X and Y components of two points
Public methodStatic memberMin
Returns the minimum X and Y components of two points
Public methodOffset(PointF)
Offsets the X and Y co-ordinates of this point by the values from the specified offset
Public methodOffset(Single, Single)
Offsets the X and Y co-ordinates of this point by the specified x and y values
Public methodStatic memberOffset(PointF, PointF)
Offsets the X and Y co-ordinates of the point by the values from the specified offset
Public methodStatic memberOffset(PointF, Single, Single)
Offsets the X and Y co-ordinates of the point by the specified x and y values
Public methodRestrict(RectangleF)
Restricts the X and Y co-ordinates within the specified rectangle
Public methodStatic memberRestrict(Point, Rectangle)
Restricts the X and Y co-ordinates of the specified point within the rectangle
Public methodRotate(Single)
Treats the point as a vector and rotates it around the origin (0,0) by the specified angle.
Public methodStatic memberRotate(PointF, Single)
Treats the point as a vector and rotates it around the origin (0,0) by the specified angle.
Public methodToString
Converts this point to a string
(Overrides ValueTypeToString.)
Public methodStatic memberUnitVectorAtAngle
Creates a unit vector PointF (a point with a Length of 1.0 from origin 0,0) with the specified angle, in degrees
Top
See Also