Class PointFExtensions
Drawing-related extension methods for
Inheritance
Namespace: X10D.Drawing
Assembly: X10D.dll
Syntax
public static class PointFExtensions : object
Methods
| Improve this Doc View SourceIsOnLine(PointF, PointF, PointF)
Determines if the current
Declaration
public static bool IsOnLine(this PointF point, PointF start, PointF end)
Parameters
Type | Name | Description |
---|---|---|
PointF | 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(PointF, Vector2, Vector2)
Determines if the current
Declaration
public static bool IsOnLine(this PointF point, Vector2 start, Vector2 end)
Parameters
Type | Name | Description |
---|---|---|
PointF | 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(PointF, LineF)
Determines if the current
Declaration
public static bool IsOnLine(this PointF point, LineF line)
Parameters
Type | Name | Description |
---|---|---|
PointF | point | The point to check. |
LineF | line | The line on which the point may lie. |
Returns
Type | Description |
---|---|
System.Boolean | true if |
Round(PointF)
Rounds the components in the current
Declaration
public static PointF Round(this PointF point)
Parameters
Type | Name | Description |
---|---|---|
PointF | point | The point whose components to round. |
Returns
Type | Description |
---|---|
PointF | The rounded point. |
Round(PointF, Single)
Rounds the components in the current
Declaration
public static PointF Round(this PointF point, float nearest)
Parameters
Type | Name | Description |
---|---|---|
PointF | point | The point whose components to round. |
System.Single | nearest | The nearest multiple to which the components should be rounded. |
Returns
Type | Description |
---|---|
PointF | The rounded point. |
ToSizeF(PointF)
Converts the current
Declaration
public static SizeF ToSizeF(this PointF point)
Parameters
Type | Name | Description |
---|---|---|
PointF | point | The point to convert. |
Returns
Type | Description |
---|---|
SizeF | The resulting |
ToVector2(PointF)
Converts the current
Declaration
public static Vector2 ToVector2(this PointF point)
Parameters
Type | Name | Description |
---|---|---|
PointF | point | The point to convert. |
Returns
Type | Description |
---|---|
Vector2 | The resulting |