﻿PointExtensions Methods
 PointExtensions Methods

The PointExtensions type exposes the following members.

Methods
NameDescription
Add(Point, Point)
Adds the specified points together.
Add(Point, Vector)
Adds the specified point and vector together.
Distance(Point)
Returns the distance of the point to the origin.
Distance(Point, Point)
Returns the distance between the specified points.
Distance(Point, Rect)
Distances to rectangle.
DistancePoint
Distance to rectangle.
Divide
Divides the point with the specified factor.
IsEmpty
Determines whether the specified point is empty.
IsXBetween
Determines whether [is X between] [the specified point].
IsYBetween
Determines whether [is Y between] [the specified point].
Multiply
Multiplies the point with the specified multiplier.
Rotate
Rotates the point.
Snap
Snaps a point by changing the X and Y coordinates to the closest value dividable by the snapping value.
Substract
Subtracts point2 from point1.
Subtract
Subtracts the specified point1.
Top
See Also