Method ToRelative
ToRelative(Point2D)
Converts a point with coordinates expressed in the absolute frame into the same point with coordinates expressed in this frame.
Declaration
public Point2D ToRelative(Point2D inPoint)
Parameters
| Type | Name | Description |
|---|---|---|
| Point2D | inPoint | Point with coordinates expressed in the absolute frame. |
Returns
| Type | Description |
|---|---|
| Point2D | Point with coordinates expressed in this frame. |
ToRelative(Vector2D)
Converts a vector with coordinates expressed in the absolute frame into the same vector with coordinates expressed in this frame.
Declaration
public Vector2D ToRelative(Vector2D inVector)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2D | inVector | Vector with coordinates expressed in the absolute frame. |
Returns
| Type | Description |
|---|---|
| Vector2D | Vector with coordinates expressed in this frame. |
ToRelative(Direction2D)
Converts a direction with coordinates expressed in the absolute frame into the same direction with coordinates expressed in this frame.
Declaration
public Direction2D ToRelative(Direction2D inDirection)
Parameters
| Type | Name | Description |
|---|---|---|
| Direction2D | inDirection | Direction with coordinates expressed in the absolute frame. |
Returns
| Type | Description |
|---|---|
| Direction2D | Direction with coordinates expressed in this frame. |
ToRelative(Axis2D)
Converts an axis with coordinates expressed in the absolute frame into the same axis with coordinates expressed in this frame.
Declaration
public Axis2D ToRelative(Axis2D inAxis)
Parameters
| Type | Name | Description |
|---|---|---|
| Axis2D | inAxis | Axis with coordinates expressed in the absolute frame. |
Returns
| Type | Description |
|---|---|
| Axis2D | Axis with coordinates expressed in this frame. |
ToRelative(Frame2D)
Converts a frame with coordinates expressed in the absolute frame into the same frame with coordinates expressed in this frame.
Declaration
public Frame2D ToRelative(Frame2D inFrame)
Parameters
| Type | Name | Description |
|---|---|---|
| Frame2D | inFrame | Frame with coordinates expressed in the absolute frame. |
Returns
| Type | Description |
|---|---|
| Frame2D | Frame with coordinates expressed in this frame. |