Click or drag to resize

Point Methods

The Point type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAbs
Returns the absolute X and Y components of the specified point
Public methodDistance(Point)
Gets the distance between this point and the specified point
Public methodStatic memberDistance(Point, Point)
Gets the distance between two points using pythagoras theorem
Public methodDotProduct(Point)
Gets the dot product of this instance and the specified point
Public methodStatic memberDotProduct(Point, Point)
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(Point)
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 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(Point)
Offsets the X and Y co-ordinates of this point by the values from the specified point
Public methodOffset(Int32, Int32)
Offsets the X and Y co-ordinates of this point by the specified x and y values
Public methodStatic memberOffset(Point, Point)
Offsets the X and Y co-ordinates of the point by the values from the specified offset
Public methodStatic memberOffset(Point, Int32, Int32)
Offsets the X and Y co-ordinates of the point by the specified x and y values
Public methodRestrict(Rectangle)
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 methodStatic memberRound
Rounds the X and Y components of the specified point to a Point
Public methodToString
Converts this point to a string
(Overrides ValueTypeToString.)
Public methodStatic memberTruncate
Truncates the X and Y components of the specified point to a Point
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