Skip to main content
API Reference NianticSpatial.NSDK.AR.Utilities ImageSamplingUtils

TransformImageCoordinates


Declaration

public static Vector2Int TransformImageCoordinates(Vector2Int coordinates, Vector2Int sourceContainer, Vector2Int targetContainer, Matrix4x4 transform, bool clampToContainer = false)

Parameters

NameTypeSummary
coordinatesVector2Int
The pixel coordinates to transform.
sourceContainerVector2Int
The resolution of the container the coordinates are interpreted in.
targetContainerVector2Int
The resolution of the container the resulting coordinates are interpreted in.
transformMatrix4x4
The transformation matrix.
clampToContainerbool
Whether to clamp the resulting coordinates to the bounds of the target container.