Operator operator +
operator +(Point2D, Vector2D)
Adds a point and a vector.
Declaration
public static Point2D operator +(Point2D inPoint, Vector2D inVector)
Parameters
| Type | Name | Description |
|---|---|---|
| Point2D | inPoint | Left hand side point. |
| Vector2D | inVector | Right hand side vector. |
Returns
| Type | Description |
|---|---|
| Point2D | Translated point. |
operator +(Point2D, Point2D)
Adds two points.
Declaration
public static Point2D operator +(Point2D inPoint1, Point2D inPoint2)
Parameters
| Type | Name | Description |
|---|---|---|
| Point2D | inPoint1 | Left hand side point. |
| Point2D | inPoint2 | Right hand side point. |
Returns
| Type | Description |
|---|---|
| Point2D | Sum point. |