Class PointExtensions
Extensions for the Point class.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public static class PointExtensions
Methods
Add(Point, Point)
Adds the specified points together.
Declaration
public static Point Add(this Point point, Point point2)
Parameters
Returns
Point
The augmented point. |
See Also
Add(Point, Vector)
Adds the specified point and vector together.
Declaration
public static Point Add(this Point point, Vector vector)
Parameters
Returns
Point
The augmented point. |
See Also
Distance(Point)
Returns the distance of the point to the origin.
Declaration
public static double Distance(this Point point)
Parameters
Point
point
The point. |
Returns
System.
|
Distance(Point, Point)
Returns the distance between the specified points.
Declaration
public static double Distance(this Point startPoint, Point endPoint)
Parameters
Returns
System.
|
Distance(Point, Rect)
Distances to rectangle.
Declaration
public static double Distance(this Point point, Rect rect)
Parameters
Returns
System.
|
DistancePoint(Point, Rect)
Distance to rectangle.
Declaration
public static Point DistancePoint(this Point point, Rect rect)
Parameters
Returns
Divide(Point, Double)
Divides the point with the specified factor.
Declaration
public static Point Divide(this Point point, double factor)
Parameters
Point
point
The point. |
System. The factor. |
Returns
IsEmpty(Point)
Determines whether the specified point is empty.
Declaration
public static bool IsEmpty(this Point point)
Parameters
Point
point
The point. |
Returns
System.
|
IsXBetween(Point, Point, Point)
Determines whether [is X between] [the specified point].
Declaration
public static bool IsXBetween(this Point point, Point firstPoint, Point secondPoint)
Parameters
Returns
System.
|
IsYBetween(Point, Point, Point)
Determines whether [is Y between] [the specified point].
Declaration
public static bool IsYBetween(this Point point, Point firstPoint, Point secondPoint)
Parameters
Returns
System.
|
Multiply(Point, Double)
Multiplies the point with the specified multiplier.
Declaration
public static Point Multiply(this Point point, double multiplier)
Parameters
Point
point
The point. |
System. The multiplier. |
Returns
Rotate(Point, Point, Double)
Rotates the point.
Declaration
public static Point Rotate(this Point point, Point pivot, double angle)
Parameters
Returns
Snap(Point, Int32, Int32)
Snaps a point by changing the X and Y coordinates to the closest value dividable by the snapping value.
Declaration
public static Point Snap(this Point point, int snapX, int snapY)
Parameters
Point
point
The point. |
System. The horizontal snapping value. |
System. The vertical snapping value. |
Returns
Point
Returns the snapped point. |
Substract(Point, Point)
Subtracts point2 from point1.
Declaration
public static Point Substract(this Point point1, Point point2)