Method ReflectPoint
ReflectPoint(Vector2, Vector2, Vector2)
Reflects a point across a line segment.
Declaration
public static Vector2 ReflectPoint(Vector2 point, Vector2 lineStart, Vector2 lineEnd)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | point | The point to reflect. |
Vector2 | lineStart | First point of the line segment. |
Vector2 | lineEnd | Second point of the line segment. |
Returns
Type | Description |
---|---|
Vector2 | The reflected point. |