TransformImageCoordinates
Declaration
public static Vector2Int TransformImageCoordinates(Vector2Int coordinates, Vector2Int sourceContainer, Vector2Int targetContainer, Matrix4x4 transform, bool clampToContainer = false)
Parameters
| Name | Type | Summary |
|---|---|---|
| coordinates | Vector2Int | The pixel coordinates to transform. |
| sourceContainer | Vector2Int | The resolution of the container the coordinates are interpreted in. |
| targetContainer | Vector2Int | The resolution of the container the resulting coordinates are interpreted in. |
| transform | Matrix4x4 | The transformation matrix. |
| clampToContainer | bool | Whether to clamp the resulting coordinates to the bounds of the target container. |