Class PointExtensions
Drawing-related extension methods for
Inheritance
Namespace: X10D.Drawing
Assembly: X10D.dll
Syntax
public static class PointExtensions : object
Methods
| Improve this Doc View SourceIsOnLine(Point, PointF, PointF)
Determines if the current
Declaration
public static bool IsOnLine(this Point point, PointF start, PointF end)
Parameters
Type | Name | Description |
---|---|---|
Point | point | The point to check. |
PointF | start | The starting point of the line. |
PointF | end | The ending point of the line. |
Returns
Type | Description |
---|---|
System.Boolean | true if |
IsOnLine(Point, Vector2, Vector2)
Determines if the current
Declaration
public static bool IsOnLine(this Point point, Vector2 start, Vector2 end)
Parameters
Type | Name | Description |
---|---|---|
Point | point | The point to check. |
Vector2 | start | The starting point of the line. |
Vector2 | end | The ending point of the line. |
Returns
Type | Description |
---|---|
System.Boolean | true if |
IsOnLine(Point, LineF)
Determines if the current
Declaration
public static bool IsOnLine(this Point point, LineF line)
Parameters
Type | Name | Description |
---|---|---|
Point | point | The point to check. |
LineF | line | The line on which the point may lie. |
Returns
Type | Description |
---|---|
System.Boolean | true if |
ToSize(Point)
Converts the current
Declaration
public static Size ToSize(this Point point)
Parameters
Type | Name | Description |
---|---|---|
Point | point | The point to convert. |
Returns
Type | Description |
---|---|
Size | The resulting |
ToSizeF(Point)
Converts the current
Declaration
public static SizeF ToSizeF(this Point point)
Parameters
Type | Name | Description |
---|---|---|
Point | point | The point to convert. |
Returns
Type | Description |
---|---|
SizeF | The resulting |
ToVector2(Point)
Converts the current
Declaration
public static Vector2 ToVector2(this Point point)
Parameters
Type | Name | Description |
---|---|---|
Point | point | The point to convert. |
Returns
Type | Description |
---|---|
Vector2 | The resulting |